Check-in Number:
|
1490 | |
Date: |
2002-Jan-02 18:04:56 (local)
2002-Jan-02 17:04:56 (UTC) |
User: | rse |
Branch: | |
Comment: |
better error for directories |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/shtool/sh.subst 1.3 -> 1.4
--- sh.subst 2001/12/31 15:06:04 1.3
+++ sh.subst 2002/01/02 17:04:56 1.4
@@ -59,7 +59,7 @@
done
elif [ ".$opt_f" != . ]; then
if [ ! -f $opt_f ]; then
- echo "$msgprefix:Error: command file \`$opt_f' not found" 1>&2
+ echo "$msgprefix:Error: command file \`$opt_f' not found or not a regular file" 1>&2
exit 1
fi
sedcmd="$sedcmd -f '$opt_f'"
@@ -80,7 +80,7 @@
for file in $files; do
test ".$file" = . && continue
if [ ! -f $file ]; then
- echo "$msgprefix:Warning: file \`$file' not found" 1>&2
+ echo "$msgprefix:Warning: file \`$file' not found or not a regular file" 1>&2
continue
fi
|
|