From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] to make regress.sh shell friendly to echo. Hi, I needed to make the following change to regress.sh to make it more shell friendly. The Solaris /bin/sh, and others, use \c to supress the newline.
This commit is contained in:
parent
a426ff583d
commit
65973e3f35
@ -1,6 +1,15 @@
|
||||
#!/bin/sh
|
||||
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.8 1997/04/27 02:56:18 scrappy Exp $
|
||||
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.9 1997/04/27 18:55:37 scrappy Exp $
|
||||
#
|
||||
if echo '\c' | grep -s c >/dev/null 2>&1
|
||||
then
|
||||
ECHO_N="echo -n"
|
||||
ECHO_C=""
|
||||
else
|
||||
ECHO_N="echo"
|
||||
ECHO_C='\c'
|
||||
fi
|
||||
|
||||
if [ -d ./obj ]; then
|
||||
cd ./obj
|
||||
fi
|
||||
@ -33,7 +42,7 @@ fi
|
||||
echo "=============== running regression queries... ================="
|
||||
for i in `cat sql/tests`
|
||||
do
|
||||
echo -n "${i} .. "
|
||||
$ECHO_N "${i} .. " $ECHO_C
|
||||
$FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1
|
||||
if [ `diff expected/${i}.out results/${i}.out | wc -l` -ne 0 ]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user