OSSP CVS Repository

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

ossp-pkg/shtool/sh.path 1.16 -> 1.17

--- sh.path      2000/06/30 16:39:07     1.16
+++ sh.path      2000/11/29 19:58:58     1.17
@@ -79,7 +79,7 @@
 
 #   MAGIC SITUATION
 #   Perl Interpreter (perl)
-if [ ".$opt_m" = .yes ] && [ ".$namelist" = .perl ]; then
+if [ ".$opt_m" = .yes  -a ".$namelist" = .perl ]; then
     rm -f $tmpfile
     touch $tmpfile
     found=0
@@ -88,7 +88,7 @@
         dir=`echo $dir | sed -e 's;/*$;;'`
         nc=99
         for name in perl perl5 miniperl; do
-             if [ $minusx "$dir/$name" ] && [ ! -d "$dir/$name" ]; then
+             if [ $minusx "$dir/$name" -a ! -d "$dir/$name" ]; then
                  perl="$dir/$name"
                  pv=`$perl -e 'printf("%.3f", $]);'`
                  echo "$pv:$pc:$nc:$perl" >>$tmpfile
@@ -109,7 +109,7 @@
 
 #   MAGIC SITUATION
 #   C pre-processor (cpp)
-if [ ".$opt_m" = .yes ] && [ ".$namelist" = .cpp ]; then
+if [ ".$opt_m" = .yes -a ".$namelist" = .cpp ]; then
     echo >$tmpfile.c "#include <assert.h>"
     echo >>$tmpfile.c "Syntax Error"
     #   1. try the standard cc -E approach
@@ -125,7 +125,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" ] && [ ! -d "$path/cpp" ]; then
+                if [ $minusx "$path/cpp" -a ! -d "$path/cpp" ]; then
                     cpp="$path/cpp"
                     break
                 fi
@@ -154,7 +154,7 @@
     #   iterate over paths
     for path in $paths; do
         path=`echo $path | sed -e 's;/*$;;'`
-        if [ $minusx "$path/$name" ] && [ ! -d "$path/$name" ]; then
+        if [ $minusx "$path/$name" -a ! -d "$path/$name" ]; then
             if [ ".$opt_s" != .yes ]; then
                 echo "$path/$name"
             fi

CVSTrac 2.0.1