Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
SHELL not always correct
- X-seq: zsh-users 13361
- From: Daniel Qarras <dqarras@xxxxxxxxx>
- To: ZSH Users <zsh-users@xxxxxxxxxx>
- Subject: SHELL not always correct
- Date: Tue, 21 Oct 2008 13:16:09 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=JvBM0JBvY+JryHJakSGTY2GpX8wIMkJZLd2AeJs1LtGILs44mmQsr+FIgeVKs1PMj2IvIgb02NTrPn7maLiqcfJOiAR6lC6h5x1tdUc24LmeSuSQoUlbFhvv8qDYHAkSYBgjv6i7BEUdnZ5k/e5Tz8J5guvxeIcD2OtMqE8d9TQ=;
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: dqarras@xxxxxxxxx
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