Skip to content

Commit

Permalink
upstream: Use egrep instead of grep -E.
Browse files Browse the repository at this point in the history
Some plaforms don't have the latter so this makes things easier
in -portable.

OpenBSD-Regress-ID: ff82260eb0db1f11130200b25d820cf73753bbe3
  • Loading branch information
daztucker committed Mar 29, 2024
1 parent 22b2b6c commit 7844705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regress/sftp-cmds.sh
@@ -1,4 +1,4 @@
# $OpenBSD: sftp-cmds.sh,v 1.18 2024/03/26 08:09:16 dtucker Exp $
# $OpenBSD: sftp-cmds.sh,v 1.19 2024/03/29 10:40:07 dtucker Exp $
# Placed in the Public Domain.

# XXX - TODO:
Expand Down Expand Up @@ -42,7 +42,7 @@ echo "ls ${OBJ}" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \

verbose "$tid: shell"
echo "!echo hi there" | ${SFTP} -D ${SFTPSERVER} 2>&1 | \
grep -E '^hi there$' >/dev/null || fail "shell failed"
egrep '^hi there$' >/dev/null || fail "shell failed"

verbose "$tid: pwd"
echo "pwd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \
Expand Down

0 comments on commit 7844705

Please sign in to comment.