If I'm in a shell script that has no shebang line… Hum, that doesn't matter, because indeed Maybe not so.sh
is always used.
Is there a command to identify the name/type of current shell, the path to the shell binary, and the version of the shell?
I don't need all of that, but the more I can get, the better.
I want something that has the same feel of uname
, pwd
, whoami
. Just a plain utility with a simple output. (which so far hasn't showed up :/ )
re ps
$ ps -o comm $$
COMM
-bash
Why -bash
instead of the full path as it would be with everything else? What's the deal with the dash there?