Explorar o código

Don't source /etc/profile from session shell

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32189 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements %!s(int64=17) %!d(string=hai) anos
pai
achega
cfdb897a9d
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      lib/init/init.sh

+ 0 - 4
lib/init/init.sh

@@ -945,10 +945,6 @@ bash|msh|cygwin)
     export HOME
     bashrc="$HOME/.bashrc"
     rm -f "$bashrc"
-    if [ "$sh" != "cygwin" ] ; then
-	# this does not work on cygwin for unknown reasons
-	echo "test -z $PROFILEREAD && . /etc/profile" > "$bashrc"
-    fi
     echo "test -r ~/.alias && . ~/.alias" >> "$bashrc"
     echo "PS1='GRASS GRASS_VERSION_NUMBER ($LOCATION_NAME):\w > '" >> "$bashrc"
     echo "PROMPT_COMMAND=$GISBASE/etc/prompt.sh" >> "$bashrc"