On Fri, May 06, 2011 at 06:22:25PM +0200, Dirk wrote:
> I was fooled by "echo $SHELL" returning "/bin/bash", but when I manually 
> call "/bin/bash" before running the above command (it is not a script 
> yet), it works.
> 
> What the heck is going on here ... (!x****mpf)

The $SHELL variable does not indicate what shell you are actually using.
It tells programs like vi what shell to *launch* when you do a shell
escape.

The most reliable way I've found so far to see what shell you are
actually in is:  ps -p $$

This works in both Bourne- and C-shell family shells, and it works with
both BSD- and SysV-based ps commands.

Reply via email to