OSSP CVS Repository

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

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

--- sh.scpp      2001/01/17 09:55:11     1.18
+++ sh.scpp      2001/06/14 19:02:54     1.19
@@ -68,10 +68,16 @@
     if [ ".$opt_v" = .yes ]; then
         echo $src | $awk '{ printf(" %s", $0); }' 1>&2
     fi
-    if [ ".$opt_f" = . ]; then
-        inputcmd="cat $src"
+    if [ ".$opt_f" != . ]; then
+        inputcmd="sed"
+        OIFS="$IFS"; IFS="$ASC_NL"; set -- $opt_f; IFS="$OIFS"
+        for e
+        do
+            inputcmd="$inputcmd -e '$e'"
+        done
+        inputcmd="$inputcmd $src"
     else
-        inputcmd="sed $opt_f $src"
+        inputcmd="cat $src"
     fi
     $inputcmd |\
     $awk '

CVSTrac 2.0.1