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 '
|
|