]> git.pld-linux.org Git - packages/kde4-kdebase.git/commitdiff
- csh fixes (tx for Kacper Kornet) auto/ac/kdebase-3_4_0-4
authoradgor <adgor@pld-linux.org>
Sun, 10 Apr 2005 08:33:49 +0000 (08:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kdebase-kdm.Xsession -> 1.8

kdebase-kdm.Xsession

index c790ebb94abf643a3bfe1364d2f73e43f8590fff..52cc604c10231b9c15351fcaf303d0b4d32aa1b9 100644 (file)
@@ -1,19 +1,19 @@
 #!/bin/sh
 
 # Make it login shell
-case $SHELL in
-       */csh|*/tcsh)
-       # [t]cshrc is always sourced automatically.
-       # Note that sourcing csh.login after .cshrc is non-standard.
-       eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; sh -c set'`
-       ;;
-       *)
-       if [ "$HAVE_LOGIN_SHELL" != "yes" ]; then
-               export HAVE_LOGIN_SHELL=yes
+if [ "$HAVE_LOGIN_SHELL" != "yes" ]; then
+       export HAVE_LOGIN_SHELL=yes
+       case $SHELL in
+               */csh|*/tcsh)
+               # [t]cshrc is always sourced automatically.
+               # Note that sourcing csh.login after .cshrc is non-standard.
+               exec $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; exec $0 $*"
+               ;;
+               *)
                exec $SHELL -l $0 $*
-       fi
-       unset HAVE_LOGIN_SHELL  
-esac
+       esac
+fi
+unset HAVE_LOGIN_SHELL 
 
 # Call standard xinit actions
 . /etc/X11/xinit/xinitdefs
This page took 0.099195 seconds and 4 git commands to generate.