diff options
author | 2013-12-09 23:14:34 +0000 | |
---|---|---|
committer | 2013-12-09 23:14:34 +0000 | |
commit | 7f371c9f607a84b2041669da4c9a0353bcb0de91 (patch) | |
tree | 4e93583cf945322af59b100587f4824a4a623283 | |
parent | Bring i915_gem_mmap_ioctl a bit closer to the Linux code. (diff) | |
download | wireguard-openbsd-7f371c9f607a84b2041669da4c9a0353bcb0de91.tar.xz wireguard-openbsd-7f371c9f607a84b2041669da4c9a0353bcb0de91.zip |
Make the response lookup of a question match on entire words, where
anything not being a whitespace is considered part of a word.
deraadt@ likes it, rpe@ has approved of the idea
-rw-r--r-- | distrib/miniroot/install.sub | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 1b06d05d989..d63662932ed 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.716 2013/12/08 12:38:48 stsp Exp $ +# $OpenBSD: install.sub,v 1.717 2013/12/09 23:14:34 halex Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -299,7 +299,8 @@ _autorespond() { [[ $_l == [!#=]*=?* ]] || continue _key=${_l%%*([[:blank:]])=*} _val=${_l##*([!=])=*([[:blank:]])} - [[ $_q == *"$_key"* ]] && resp=$_val && cat && return + [[ $_q == @(|*[[:blank:]])"$_key"@([[:blank:]]*|) ]] && + resp=$_val && cat && return print -r " $_l" done </ai.conf.tmp >/ai.conf [[ -n $_def ]] && resp=$_def && return |