summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-10-10 13:04:41 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-10-10 13:04:41 +0200
commitfba5d13ebe3aa6fc4adc72f5a6b3ecfd96b734fe (patch)
treecd7ba9cd91e56e6ecd600512a82ace096cd6b372
parenta8b00da664fbea424f5c11e9b22f641b66059642 (diff)
downloadzsh-fba5d13ebe3aa6fc4adc72f5a6b3ecfd96b734fe.tar.gz
zsh-fba5d13ebe3aa6fc4adc72f5a6b3ecfd96b734fe.zip
zsh4 wrapper: Try to recognize login shells by leading dash in $0
Thanks Frank Terbeck! Git-Dch: Ignore
-rwxr-xr-xdebian/zsh42
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/zsh4 b/debian/zsh4
index a45e41749..5188086fd 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!"