Unix Shell - Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > December 2004 > Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently
moma

2004-12-27, 5:52 pm

Carl Minter wrote:
> Imagine I have an open x-term. Now I want to detect which shell is currently used.
> How do I find this out?
>
> Carl
>


$ echo $0
ksh

$ $0 --version
tcsh 6.13.00 (Astron) 2004-05-19 (i586-intel-linux) options..


(
Some manuals advises to test

$ echo "$SHELL"
/bin/bash # HARD TO TELL!

$ echo "$shell"
)


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com