]> git.pld-linux.org Git - projects/setup.git/commitdiff
- use $SHELL instead of $0
authorTomasz Pala <gotar@pld-linux.org>
Sat, 10 Apr 2004 23:50:01 +0000 (23:50 +0000)
committerTomasz Pala <gotar@pld-linux.org>
Sat, 10 Apr 2004 23:50:01 +0000 (23:50 +0000)
Changed files:
    etc/profile -> 1.39

etc/profile

index 9ea15585cf8841fc7d53b71f84b689738eaba004..b5772102034ad85dc59fb5026f076c23298f57fb 100644 (file)
@@ -29,8 +29,7 @@ if [ "$TERM" = "" -o "$TERM" = "unknown" ]; then
        TERM=linux
 fi
 
-SH="${0#\-}"
-SH="${SH#/bin/}"
+SH="${SHELL#/bin/}"
 if [ "$SH" = "sh" ]; then
        if [ -n "$KSH_VERSION" ]; then
                SH=ksh
This page took 0.040353 seconds and 4 git commands to generate.