diff options
| author | Jari Aalto <jari.aalto@cante.net> | 2000-03-17 21:46:59 +0000 |
|---|---|---|
| committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:53 +0000 |
| commit | bb70624e964126b7ac4ff085ba163a9c35ffa18f (patch) | |
| tree | ba2dd4add13ada94b1899c6d4aca80195b80b74b /examples/scripts.v2 | |
| parent | b72432fdcc59300c6fe7c9d6c8a31ad3447933f5 (diff) | |
| download | android_external_bash-bb70624e964126b7ac4ff085ba163a9c35ffa18f.tar.gz android_external_bash-bb70624e964126b7ac4ff085ba163a9c35ffa18f.tar.bz2 android_external_bash-bb70624e964126b7ac4ff085ba163a9c35ffa18f.zip | |
Imported from ../bash-2.04.tar.gz.
Diffstat (limited to 'examples/scripts.v2')
| -rw-r--r-- | examples/scripts.v2/rename | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/scripts.v2/rename b/examples/scripts.v2/rename index 0c9bf1f..96c46d6 100644 --- a/examples/scripts.v2/rename +++ b/examples/scripts.v2/rename @@ -46,8 +46,8 @@ fi oldpat=$1 newpat=$2 -set $1 -if [ ! -a "$1" ]; then +set -- $1 +if [ ! -e "$1" ]; then echo "$name: no files match $oldpat." exit 1 fi @@ -79,7 +79,7 @@ while :; do done if [ $i -eq 1 ]; then - print -u2 "No globbing chars in pattern." + echo "No globbing chars in pattern." 1>&2 exit 1 fi |
