Merge release-4-6 into master
[alexxy/gromacs.git] / scripts / GMXRC.cmakein
index 9917088959a64eb63ea7fee6b1894c1e0c0497b1..bc5f737fba02a62c080b97ccee65776302071f56 100644 (file)
@@ -5,9 +5,8 @@
 # If you only use one shell you can copy that GMXRC.* instead.
 
 
-# only csh/tcsh understand 'set'
-set is_csh = 123
-test "$is_csh" = 123 && goto CSH
+# only csh/tcsh set the variable $shell (note: lower case!)
+test $shell && goto CSH
 
 # if we got here, shell is bsh/bash/zsh/ksh
 . @BIN_INSTALL_DIR@/GMXRC.bash