]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Backslash '$' at then end of string. Prevents warning on
authordtucker@openbsd.org <dtucker@openbsd.org>
Tue, 21 Apr 2020 23:14:58 +0000 (23:14 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 22 Apr 2020 01:35:49 +0000 (11:35 +1000)
some shells.

OpenBSD-Regress-ID: 5dc27ab624c09d34078fd326b10e38c1ce9c741f

regress/keygen-comment.sh

index 74a734af7715512807c8ebcc6c1d63973e3b82e6..af571d39035fb1ea2a60e4f54329b9f87f95c108 100644 (file)
@@ -11,7 +11,7 @@ check_fingerprint () {
        if ! ${SSHKEYGEN} -l -E sha256 -f $file > $OBJ/$t-fgp ; then
                fail "ssh-keygen -l failed for $t-key"
        fi
-       if ! egrep "^([0-9]+) SHA256:(.){43} ${comment} \(.*\)$" \
+       if ! egrep "^([0-9]+) SHA256:(.){43} ${comment} \(.*\)\$" \
            $OBJ/$t-fgp >/dev/null 2>&1 ; then
                fail "comment is not correctly recovered for $t-key"
        fi