torsdagen den 4 oktober 2001 13.20 skrev Borsenkow Andrej:
[root@cooker supermount]# su - bor
id: cannot find name for group ID 504
/etc/profile.d/ssh-client.sh:2: command not found: shopt
This is trivial patch (but hup is default with zsh anyway)
-andrej
--- ssh-client.sh.bor Thu Oct 4 10:17:30 2001
+++ ssh-client.sh Thu Oct 4 15:19:07 2001
@@ -1,2 +1,6 @@
# fix hanging ssh clients on exit
-shopt -s huponexit
+if test -n $ZSH_VERSION; then
+ setopt hup
+else
+ shopt -s huponexit
+fi
Cool!
(I never use zsh)
--
Oden Eriksson, Jokkmokk, Sweden
LM8.1, 2.4.10-1mdksmp, @ 11:32