[Cooker] /etc/profile.d/ssh-client.sh incompatible with zsh

2001-10-04 Thread 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




Re: [Cooker] /etc/profile.d/ssh-client.sh incompatible with zsh

2001-10-04 Thread Oden Eriksson

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




Re: [Cooker] /etc/profile.d/ssh-client.sh incompatible with zsh

2001-10-04 Thread Oden Eriksson

torsdagen den 4 oktober 2001 14.40 skrev Chmouel Boudjnah:
 Oden Eriksson [EMAIL PROTECTED] writes:
  Cool!
  (I never use zsh)

 well people/maintainners writting /etc/profile.d/*.sh files should
 think Bourne Shell which is != to Bash.

Yes, that what I intended naming it just *.sh :)

-- 
Oden Eriksson, Jokkmokk, Sweden
LM8.1, 2.4.10-1mdksmp, @  13:37