diff options
author | dds <dds@FreeBSD.org> | 2007-12-18 08:53:04 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2007-12-18 08:53:04 +0000 |
commit | 211284bdb029b3eefade6e675b3fb4660230274e (patch) | |
tree | 32abe0a079594c0f4fc82249a4991d80d42fbd66 | |
parent | 2d1dbd2a757ee806f49419005b8f5a4502c3c05c (diff) | |
download | FreeBSD-src-211284bdb029b3eefade6e675b3fb4660230274e.zip FreeBSD-src-211284bdb029b3eefade6e675b3fb4660230274e.tar.gz |
Portability improvements to investigate behavior of other OSs.
Now works under Solaris and Linux.
-rw-r--r-- | tools/regression/bin/mv/regress.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/regression/bin/mv/regress.sh b/tools/regression/bin/mv/regress.sh index f75c104..fff420f 100644 --- a/tools/regression/bin/mv/regress.sh +++ b/tools/regression/bin/mv/regress.sh @@ -26,9 +26,9 @@ end() { if [ $OK = 1 ] then - echo -n 'ok ' + printf 'ok ' else - echo -n 'not ok ' + printf 'not ok ' fi echo "$COUNT - $NAME" cd .. @@ -45,7 +45,7 @@ mkf() # Verify that the file specified is correct ckf() { - if [ -f $2 ] && echo "$1-$1" | diff -q - $2 + if [ -f $2 ] && echo "$1-$1" | diff - $2 >/dev/null then ok else @@ -92,7 +92,7 @@ ckd() # (is not there) cknt() { - if [ -e $1 ] + if [ -r $1 ] then notok else |