Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently used?
From: Dave Brown (dhbrown_at_hobbes.dhbrown.net)
Date: 12/28/04
- Next message: Vlad D. Markov: "Re: Obtaining IP address"
- Previous message: faeychild: "Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently used?"
- In reply to: Carl Minter: "How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently used?"
- Next in thread: Davide Bianchi: "Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently used?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Dec 2004 04:56:06 GMT
In article <cqpme6$80c$01$1@news.t-online.com>, 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?
You can use "echo $0", although it may not tell the real story... for
instance, there's a "pdksh" which is often installed as "ksh", and isn't
a genuine Korn shell. (And I believe some systems install "tcsh" as
"csh".
For Korn shell, you can tell if it's genuine if you:
set -o vi
<Esc> <Ctrl-V>
you should see:
Version M 1993-12-28 n+
or something like that. (Which would identify it at "ksh93" instead of
the venerable but still common "ksh88".)
-- Dave Brown Austin, TX
- Next message: Vlad D. Markov: "Re: Obtaining IP address"
- Previous message: faeychild: "Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently used?"
- In reply to: Carl Minter: "How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently used?"
- Next in thread: Davide Bianchi: "Re: How do I detect which shell (ksh, bash, csh, zsh, tcsh) is currently used?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|