OSSP CVS Repository

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

ossp-pkg/shtool/sh.install 1.33 -> 1.34

--- sh.install   2006/02/04 09:43:25     1.33
+++ sh.install   2007/05/15 19:35:48     1.34
@@ -119,12 +119,12 @@
         if [ ".$opt_t" = .yes ]; then
             echo "cp $src $dsttmp" 1>&2
         fi
-        cp $src $dsttmp || shtool_exit $?
+        cp "$src" "$dsttmp" || shtool_exit $?
     else
         if [ ".$opt_t" = .yes ]; then
             echo "mv $src $dsttmp" 1>&2
         fi
-        mv $src $dsttmp || shtool_exit $?
+        mv "$src" "$dsttmp" || shtool_exit $?
     fi
 
     #   adjust the target file
@@ -135,7 +135,7 @@
         do
             sed="$sed -e '$e'"
         done
-        cp $dsttmp $dsttmp.old
+        cp "$dsttmp" "$dsttmp.old"
         chmod u+w $dsttmp
         eval "$sed <$dsttmp.old >$dsttmp" || shtool_exit $?
         rm -f $dsttmp.old
@@ -170,7 +170,7 @@
     quick=no
     if [ ".$opt_C" = .yes ]; then
         if [ -r $dst ]; then
-            if cmp -s $src $dst; then
+            if cmp -s "$src" "$dst"; then
                 quick=yes
             fi
         fi

CVSTrac 2.0.1