Possible Duplicate:
How to test what shell I am using in a terminal?
For example the following script
#!/bin/bash
issue_interpreter_name
would issue:
bash
For example the following script
would issue:
| |||||
feedback
|
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.
| |||||||
feedback
|
If it's a local user, the 7th field of /etc/passwd is their shell. Are you looking for the currently preferred shell? | |||||
feedback
|