Portability improvements to investigate behavior of other OSs.

Now works under Solaris and Linux.
This commit is contained in:
dds 2007-12-18 08:53:04 +00:00
parent 2d1dbd2a75
commit 211284bdb0

View File

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