biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
09a3eb8
)
Merge "Fixed GMXRC so we are not polluting standard shell variables" into release-4-6
author
Roland Schulz
<roland@rschulz.eu>
Thu, 3 Jan 2013 18:20:29 +0000
(19:20 +0100)
committer
Gerrit Code Review
<gerrit@gerrit.gromacs.org>
Thu, 3 Jan 2013 18:20:29 +0000
(19:20 +0100)
scripts/GMXRC.cmakein
patch
|
blob
|
history
diff --git
a/scripts/GMXRC.cmakein
b/scripts/GMXRC.cmakein
index de457e2b1b8b7a0921b3bada649bc0b3556af23b..b57659a9495927e3e7b38ecb9060f5a182907956 100644
(file)
--- a/
scripts/GMXRC.cmakein
+++ b/
scripts/GMXRC.cmakein
@@
-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
# bsh cannot remove part of a variable with %%