Re: Call for input on comp.unix.shell FAQ
From: Stephane CHAZELAS (stephane_chazelas_at_yahoo.fr)
Date: 07/17/03
- Next message: Faux_Pseudo: "Re: Call for input on comp.unix.shell FAQ"
- Previous message: Barry Margolin: "Re: Call for input on comp.unix.shell FAQ"
- In reply to: Michael Wang: "Re: Call for input on comp.unix.shell FAQ"
- Next in thread: Faux_Pseudo: "Re: Call for input on comp.unix.shell FAQ"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 16 Jul 2003 22:17:04 GMT
Michael Wang wrote:
[...]
>>>> SHELL=/prefered/shell export SHELL
>>>> exec "$SHELL"
[...]
> Why should export be needed in the first place?
SHELL needs to be in the environment. It's likely to already be
in the environment (put there by login), but note that some
shells don't update the environment variable each time the
*shell* variable is modified.
With some shells:
SHELL=/bin/sh
export SHELL
env | grep '^SHELL='
SHELL=/bin/zsh
env | grep '^SHELL='
export SHELL
env | grep '^SHELL='
will output:
/bin/sh
/bin/sh
/bin/zsh
-- Stéphane
- Next message: Faux_Pseudo: "Re: Call for input on comp.unix.shell FAQ"
- Previous message: Barry Margolin: "Re: Call for input on comp.unix.shell FAQ"
- In reply to: Michael Wang: "Re: Call for input on comp.unix.shell FAQ"
- Next in thread: Faux_Pseudo: "Re: Call for input on comp.unix.shell FAQ"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|