about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/User/_man2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ff8f9a17..6e117d221 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,13 @@
+2000-04-12  Bart Schaefer  <schaefer@brasslantern.com>
+
+	* 10706: Andrej: Completion/User/_man: Fix quoting in awk args.
+
 2000-04-12  Oliver Kiddle  <opk@u.genie.co.uk>
 
 	* 10701: Completion/Builtins/_bindkey, Doc/Zsh/mod_zle.yo:
 	use _arguments for bindkey completion and fix typo in docs
 
-2000-04-12  Bart Schaefer  <schaefer@brasslantern.com>
+2000-04-12  Bart Schaefer  <schaefer@zsh.org>
 
 	* 10700: Andrej: Completion/User/_man: Support for Pyramid.
 
diff --git a/Completion/User/_man b/Completion/User/_man
index 56c1bab09..0ba1798d1 100644
--- a/Completion/User/_man
+++ b/Completion/User/_man
@@ -31,7 +31,7 @@ mrd=(${^manpath/\\%L/${LANG:-En_US.ASCII}}/mandb(N))
 if [[ $words[2] = (<->*|1M|l|n) ]]; then
   rep=(
   $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )
-  (($#mrd)) && rep[$#rep+1]=($(awk "\$2 == $words[2] {print \$1}" $mrd))
+  (($#mrd)) && rep[$#rep+1]=($(awk "\$2 == \"$words[2]\" {print \$1}" $mrd))
 else
   rep=( $manpath/(sman|man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )
   (($#mrd)) && rep[$#rep+1]=($(awk '{print $1}' $mrd))