Greg Reagle <greg.rea...@umbc.edu> writes:

>> Additionally 2: Until this thing is sorted out, I still use zsh as my
>> main shell.  But it just occurred to me that when I have a zsh shell
>> and start fish by issuing it at the prompt, SHELL will remain
>> /bin/zsh.  Is that intensional?
>
> Yes it is intentional.  $SHELL does not represent the current shell, it
> represents your preferred shell, see POSIX [1].

Ups, then I guess I've written a lot scripts wrongly in the past by
dispatching on SHELL assuming that's the current one.  (Fortunately,
I've never written an important production script.)

Bye,
Tassilo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to