]> git.pld-linux.org Git - packages/bash.git/blobdiff - bash-skel-.bash_profile
- ~/.bashrc with /etc/bashrc shouldn't be even executed for non-interactive
[packages/bash.git] / bash-skel-.bash_profile
index 447dff1dc4b5bb037c6f0556155725f451566d53..7837e8d011c2c6f513a916528da778274429fd23 100644 (file)
@@ -1,6 +1,8 @@
 # .bash_profile - file executed when logging in
 
-if [ -f ~/.bashrc ]; then
+# execute local (and so system wide) rc file only when interactive (not from scp etc.)
+# bash is too dumb to do in on it's own when started as login shell
+if [ $- = *i* && -f ~/.bashrc ]; then
        . ~/.bashrc
 fi
 
@@ -12,6 +14,7 @@ export TMPDIR="$TMP"
 # setup LOCALE variables
 #export LANG=
 #export LC_ALL=
+#export LANGUAGE=
 
 # only You can access your files
 #umask 077
This page took 0.032891 seconds and 4 git commands to generate.