Re: how to find which shell I am using currently
- From: "bsh" <brian_hiles@xxxxxxxxxxxxxx>
- Date: 30 Oct 2006 15:02:44 -0800
senthilS wrote:
...
Both "$0" and "ps" can be easily spoofed, and well as
needing to cater to portability concerns. In addition,
many shells will "advertise" themselves as another
shell ("bash" and "ksh" as "sh", etcetera) ostensibly
for configuring feature visibility yet obscuring the
controlling standard (SYS5, BSD, POSIX, ...).
For a non-trivial solution (listed in order of general
scope), see if any of the following fit your specific needs:
"shtype"
http://shelldorado.com/scripts/cmds/shtype.txt
"The Kameleon Shell.sh"
http://www.unixreview.com/documents/s=1344/ur0312e/
"whichshell"
http://groups.google.com/group/comp.unix.shell/browse_frm/thread/2bd63afd15f87c43/01513a857080ed64?lnk=st&q=&rnum=1&hl=en#01513a857080ed64
"which_interpreter"
http://stchaz.free.fr/
=Brian
.
- References:
- how to find which shell I am using currently
- From: senthilS
- how to find which shell I am using currently
- Prev by Date: Re: cut
- Next by Date: Re: Text encoding conversion
- Previous by thread: Re: how to find which shell I am using currently
- Next by thread: Hashing out tyoed passwords
- Index(es):