[Pkg-zsh-commits] [zsh] 03/04: zsh4 wrapper: Try to recognize login shells by leading dash in $0
Axel Beckert
abe at deuxchevaux.org
Fri Oct 10 11:06:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch debian
in repository zsh.
commit fba5d13ebe3aa6fc4adc72f5a6b3ecfd96b734fe
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Fri Oct 10 13:04:41 2014 +0200
zsh4 wrapper: Try to recognize login shells by leading dash in $0
Thanks Frank Terbeck!
Git-Dch: Ignore
---
debian/zsh4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/zsh4 b/debian/zsh4
index a45e417..5188086 100755
--- a/debian/zsh4
+++ b/debian/zsh4
@@ -15,7 +15,7 @@ if [[ $0 == *zsh4* ]]; then
echo ""
echo " ####"
echo " #### $0 is deprecated, please switch to /bin/zsh${static} (or /usr/bin/zsh)"
- if [[ "$1" == "-l" ]]; then
+ if [[ "$1" == "-l" || "$0" == -* ]]; then
echo ' #### Use "chsh -s '"/bin/zsh${static}"'" to change your login shell'
fi
echo " #### This command ($0) will disappear eventually!"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git
More information about the Pkg-zsh-commits
mailing list