X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-keys/blobdiff_plain/f0c3e6f655d97330ce7e7423c3c510b056982f45..11c7b588618f2bddd4184def529c15d65cccefa4:/keyfunc.sh.in diff --git a/keyfunc.sh.in b/keyfunc.sh.in index 38ca243..2a10f26 100644 --- a/keyfunc.sh.in +++ b/keyfunc.sh.in @@ -144,7 +144,7 @@ check () { validp=t case "$thing" in *"$nl"*) validp=nil ;; - *) if ! expr >/dev/null "$thing" : "$ckpat\$"; then validp=nil; fi ;; + *) if ! expr >/dev/null "Q$thing" : "Q$ckpat\$"; then validp=nil; fi ;; esac case $validp in nil) echo >&2 "$quis: bad $ckwhat \`$thing'"; exit 1 ;;