summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/sftp-glob.sh4
-rw-r--r--regress/test-exec.sh19
2 files changed, 10 insertions, 13 deletions
diff --git a/regress/sftp-glob.sh b/regress/sftp-glob.sh
index d5ebf9fd..62004efc 100644
--- a/regress/sftp-glob.sh
+++ b/regress/sftp-glob.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: sftp-glob.sh,v 1.2 2007/10/24 03:32:35 djm Exp $
+# $OpenBSD: sftp-glob.sh,v 1.3 2007/10/26 05:30:01 djm Exp $
# Placed in the Public Domain.
tid="sftp glob"
@@ -9,7 +9,7 @@ sftp_ls() {
expected=$3
unexpected=$4
verbose "$tid: $errtag"
- $ECHOE "ls -l ${target}" | \
+ printf "ls -l %s" "${target}" | \
${SFTP} -b - -P ${SFTPSERVER} 2>/dev/null | \
grep -v "^sftp>" > ${RESULTS}
if [ $? -ne 0 ]; then
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 650be419..e4477806 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: test-exec.sh,v 1.28 2005/05/20 23:14:15 djm Exp $
+# $OpenBSD: test-exec.sh,v 1.30 2007/10/26 05:30:01 djm Exp $
# Placed in the Public Domain.
#SUDO=sudo
@@ -30,9 +30,6 @@ else
USER=`id -un`
fi
-# XXX platforms that don't support -E may need a replacement
-ECHOE="echo -E"
-
OBJ=$1
if [ "x$OBJ" = "x" ]; then
echo '$OBJ not defined'
@@ -159,31 +156,31 @@ cleanup ()
trace ()
{
- $ECHOE "trace: $@" >>$TEST_SSH_LOGFILE
+ echo "trace: $@" >>$TEST_SSH_LOGFILE
if [ "X$TEST_SSH_TRACE" = "Xyes" ]; then
- $ECHOE "$@"
+ echo "$@"
fi
}
verbose ()
{
- $ECHOE "verbose: $@" >>$TEST_SSH_LOGFILE
+ echo "verbose: $@" >>$TEST_SSH_LOGFILE
if [ "X$TEST_SSH_QUIET" != "Xyes" ]; then
- $ECHOE "$@"
+ echo "$@"
fi
}
fail ()
{
- $ECHOE "FAIL: $@" >>$TEST_SSH_LOGFILE
+ echo "FAIL: $@" >>$TEST_SSH_LOGFILE
RESULT=1
- $ECHOE "$@"
+ echo "$@"
}
fatal ()
{
- $ECHOE "FATAL: $@" >>$TEST_SSH_LOGFILE
+ echo "FATAL: $@" >>$TEST_SSH_LOGFILE
echon "FATAL: "
fail "$@"
cleanup