diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2023-03-02 08:14:53 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2023-03-02 08:14:53 +0000 |
commit | 16324a7a8accfd0a1720e2d0800d43f4642bb1f6 (patch) | |
tree | 2f94f3e537db221a57ba995de99019deccd45948 /regress/usr.bin/ssh/dhgex.sh | |
parent | 6a6803cdc0f4fa38f4c1c55e20b6f14d23c9052f (diff) |
Quote grep and log message better.
Diffstat (limited to 'regress/usr.bin/ssh/dhgex.sh')
-rw-r--r-- | regress/usr.bin/ssh/dhgex.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.bin/ssh/dhgex.sh b/regress/usr.bin/ssh/dhgex.sh index 6dd4cfe3f94..30064f30a9f 100644 --- a/regress/usr.bin/ssh/dhgex.sh +++ b/regress/usr.bin/ssh/dhgex.sh @@ -1,4 +1,4 @@ -# $OpenBSD: dhgex.sh,v 1.7 2020/12/21 22:48:41 dtucker Exp $ +# $OpenBSD: dhgex.sh,v 1.8 2023/03/02 08:14:52 dtucker Exp $ # Placed in the Public Domain. tid="dhgex" @@ -31,8 +31,8 @@ ssh_test_dhgex() # check what we request grep "SSH2_MSG_KEX_DH_GEX_REQUEST($groupsz) sent" ${LOG} >/dev/null if [ $? != 0 ]; then - got=`egrep "SSH2_MSG_KEX_DH_GEX_REQUEST(.*) sent" ${LOG}` - fail "$tid unexpected GEX sizes, expected $groupsz, got $got" + got="`egrep 'SSH2_MSG_KEX_DH_GEX_REQUEST(.*) sent' ${LOG}`" + fail "$tid unexpected GEX sizes, expected $groupsz, got '$got'" fi # check what we got. gotbits="`awk 'BEGIN{FS="/"}/bits set:/{print $2}' ${LOG} | |