Re: How to find your shell



> I agree with Mr Kletnieks. I was mistaken. The $SHELL
> does not give the currently executing shell. It
> continues to give the original shell (given in the
> /etc/passwd).

Don't make it any harder than needed :-p

# ls -l /proc/self/exe

That will show where the current shell executable file is located, and
hence its name.

Stian Skjelstad



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]