Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

SHELL not always correct



Dear List,

I'm wondering is this a bug or a feature:

localhost:~> echo $SHELL 
/bin/zsh
localhost:~> exec bash -l
localhost:~$ echo $SHELL
/bin/bash
localhost:~$ exec zsh -l -i
localhost:~> echo $SHELL
/bin/bash

If a feature, then I guess I'll drop something like this to my .zshenv:

# Erase any possible signs of an inferior shell invoking us
unset BASH BASH_VERSION
export SHELL="`whence zsh`"

Cheers!




      



Messages sorted by: Reverse Date, Date, Thread, Author