OSSP CVS Repository

ossp - Check-in [604]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 604
Date: 2001-Aug-04 17:43:22 (local)
2001-Aug-04 15:43:22 (UTC)
User:rse
Branch:
Comment: *** empty log message ***
Tickets:
Inspections:
Files:
ossp-pkg/shtool/ChangeLog      1.159 -> 1.160     3 inserted, 0 deleted
ossp-pkg/shtool/sh.path      1.18 -> 1.19     5 inserted, 3 deleted

ossp-pkg/shtool/ChangeLog 1.159 -> 1.160

--- ChangeLog    2001/06/14 22:02:12     1.159
+++ ChangeLog    2001/08/04 15:43:22     1.160
@@ -11,6 +11,9 @@
 
  Changes between 1.5.4 and 1.6.0 (14-Jun-2001 to xx-Jun-2001):
 
+   *) Cleaned up temporary file handling `shtool path'.
+      [Ralf S. Engelschall]
+
    *) Added NEWS file to source tree to comply to GNU standards.
       [Ralf S. Engelschall]
 


ossp-pkg/shtool/sh.path 1.18 -> 1.19

--- sh.path      2001/01/17 09:55:11     1.18
+++ sh.path      2001/08/04 15:43:22     1.19
@@ -80,7 +80,7 @@
 #   MAGIC SITUATION
 #   Perl Interpreter (perl)
 if [ ".$opt_m" = .yes  -a ".$namelist" = .perl ]; then
-    rm -f $tmpfile
+    rm -f $tmpfile >/dev/null 2>&1
     touch $tmpfile
     found=0
     pc=99
@@ -100,10 +100,11 @@
     done
     if [ $found = 1 ]; then
         perl="`cat $tmpfile | sort -u | tail -1 | cut -d: -f4`"
-        rm -f $tmpfile
+        rm -f $tmpfile >/dev/null 2>&1
         echo "$perl"
         exit 0
     fi
+    rm -f $tmpfile >/dev/null 2>&1
     exit 1
 fi
 
@@ -140,7 +141,8 @@
             fi
         fi
     fi
-    rm -f $tmpfile.c $tmpfile.out
+    rm -f $tmpfile >/dev/null 2>&1
+    rm -f $tmpfile.c $tmpfile.out >/dev/null 2>&1
     if [ ".$cpp" != . ]; then
         echo "$cpp"
         exit 0

CVSTrac 2.0.1