OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/sh.path versions 1.24 and 1.25
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/shtool/sh.path 1.24 -> 1.25

--- sh.path      2003/02/11 13:00:50     1.24
+++ sh.path      2003/08/13 14:20:34     1.25
@@ -80,7 +80,7 @@
 
 #   MAGIC SITUATION
 #   Perl Interpreter (perl)
-if [ ".$opt_m" = .yes  -a ".$namelist" = .perl ]; then
+if [ ".$opt_m" = .yes ] && [ ".$namelist" = .perl ]; then
     rm -f $tmpfile >/dev/null 2>&1
     touch $tmpfile
     found=0
@@ -89,7 +89,7 @@
         dir=`echo $dir | sed -e 's;/*$;;'`
         nc=99
         for name in perl perl5 miniperl; do
-             if [ $minusx "$dir/$name" -a ! -d "$dir/$name" ]; then
+             if [ $minusx "$dir/$name" ] && [ ! -d "$dir/$name" ]; then
                  perl="$dir/$name"
                  pv=`$perl -e 'printf("%.3f", $]);'`
                  echo "$pv:$pc:$nc:$perl" >>$tmpfile
@@ -111,7 +111,7 @@
 
 #   MAGIC SITUATION
 #   C pre-processor (cpp)
-if [ ".$opt_m" = .yes -a ".$namelist" = .cpp ]; then
+if [ ".$opt_m" = .yes ] && [ ".$namelist" = .cpp ]; then
     echo >$tmpfile.c "#include <assert.h>"
     echo >>$tmpfile.c "Syntax Error"
     #   1. try the standard cc -E approach
@@ -127,7 +127,7 @@
             #   3. try a standalone cpp command in path and lib dirs
             for path in $paths /lib /usr/lib /usr/local/lib; do
                 path=`echo $path | sed -e 's;/*$;;'`
-                if [ $minusx "$path/cpp" -a ! -d "$path/cpp" ]; then
+                if [ $minusx "$path/cpp" ] && [ ! -d "$path/cpp" ]; then
                     cpp="$path/cpp"
                     break
                 fi
@@ -157,7 +157,7 @@
     #   iterate over paths
     for path in $paths; do
         path=`echo $path | sed -e 's;/*$;;'`
-        if [ $minusx "$path/$name" -a ! -d "$path/$name" ]; then
+        if [ $minusx "$path/$name" ] && [ ! -d "$path/$name" ]; then
             if [ ".$opt_s" != .yes ]; then
                 echo "$path/$name"
             fi

CVSTrac 2.0.1