Possible Duplicate:
How to test what shell I am using in a terminal?
I want to detect which interpreter a shell script is using. For example the following script:
#!/bin/bash
issue_interpreter_name()
Should reveal the interpreter:
bash
I want to detect which interpreter a shell script is using. For example the following script:
Should reveal the interpreter:
|
|||||||||
marked as duplicate by sr_, Stéphane Gimenez, Kevin, Gilles, Mat May 4 '12 at 10:23This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
|||||||||
|
If it's a local user, the 7th field of /etc/passwd is their shell. Are you looking for the currently preferred shell? |
|||||
|
|
||||