about summary refs log tree commit diff
path: root/Completion/User/_man
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-04-12 17:12:54 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-04-12 17:12:54 +0000
commit3715a5bbcfa0270067a781bb1d776871c4994de5 (patch)
treedce92b19b872884f05f77b1d85512d1efba2f1db /Completion/User/_man
parent63719320c32fc2a29fd58ea3bcb539baa6068c26 (diff)
downloadzsh-3715a5bbcfa0270067a781bb1d776871c4994de5.tar.gz
zsh-3715a5bbcfa0270067a781bb1d776871c4994de5.tar.xz
zsh-3715a5bbcfa0270067a781bb1d776871c4994de5.zip
10706: Andrej: Fix quoting in awk args.
Diffstat (limited to 'Completion/User/_man')
-rw-r--r--Completion/User/_man2
1 files changed, 1 insertions, 1 deletions
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))