]> git.pld-linux.org Git - projects/setup.git/commitdiff
PS1 it's shell specific and should not be exported!
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Jun 2013 23:09:37 +0000 (23:09 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Jun 2013 23:09:37 +0000 (23:09 +0000)
consider scenario: PS1 in mksh having bultin 'print':

  PS1=$(print "$PWD")

now, executing bash, which does not have 'print' builtin, and no no bashrc
present. bash would get invalid PS1 with mksh builtin 'print' and each prompt
giving error about command not found.

Changed files:
    etc/profile -> 1.59

etc/profile

index 2fc35b10beb09bf8442d9286964ac13b6dd2e803..75f5b3791d7489ad507ab36fa8e9db0e1359f7ef 100644 (file)
@@ -110,7 +110,7 @@ case "$SH" in
 esac
 
 unset SH
-export PATH USER LOGNAME HOSTNAME HISTFILE HISTSIZE PS1 PS2
+export PATH USER LOGNAME HOSTNAME HISTFILE HISTSIZE PS2
 
 # Put all of the variables as files in /etc/env.d/
 # example:
This page took 0.112202 seconds and 4 git commands to generate.