summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2007-12-18 08:53:04 +0000
committerdds <dds@FreeBSD.org>2007-12-18 08:53:04 +0000
commit211284bdb029b3eefade6e675b3fb4660230274e (patch)
tree32abe0a079594c0f4fc82249a4991d80d42fbd66 /tools
parent2d1dbd2a757ee806f49419005b8f5a4502c3c05c (diff)
downloadFreeBSD-src-211284bdb029b3eefade6e675b3fb4660230274e.zip
FreeBSD-src-211284bdb029b3eefade6e675b3fb4660230274e.tar.gz
Portability improvements to investigate behavior of other OSs.
Now works under Solaris and Linux.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/mv/regress.sh8
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
OpenPOWER on IntegriCloud