]> git.pld-linux.org Git - packages/environment-modules.git/commitdiff
- $() is more readable
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 8 May 2010 23:09:55 +0000 (23:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    modules.sh -> 1.2

modules.sh

index 48cc32491d8f4c6df8edcdfadf1acd08cabe92b6..faf3afc342c5bc776e4bfd80290153601b134b6e 100644 (file)
@@ -1,6 +1,6 @@
-shell=`/bin/basename \`/bin/ps -p $$ -ocomm=\``
-if [ -f /usr/share/Modules/init/$shell ]
-then
+shell=$(/bin/basename $(/bin/ps -p $$ -ocomm=))
+if [ -f /usr/share/Modules/init/$shell ]; then
+  . /usr/share/Modules/init/$shell
   . /usr/share/Modules/init/$shell
 else
   . /usr/share/Modules/init/sh
This page took 0.067178 seconds and 4 git commands to generate.