Escape $ character in apropos completions - Thanks to Peter Moulder for pointing this one out

darcs-hash:20060510115641-ac50b-51db7d181d63119c6edc223b06f8b8b63e8149d6.gz
This commit is contained in:
axel 2006-05-10 21:56:41 +10:00
parent 4932538c74
commit 633e2f498f

View file

@ -2,7 +2,7 @@
function __fish_complete_apropos function __fish_complete_apropos
if test (commandline -ct) if test (commandline -ct)
set str (commandline -ct) set str (commandline -ct)
apropos $str|sed -e "s/^\(.*$str\([^ ]*\).*\)$/$str\2"\t"\1/" apropos $str|sed -e "s/^\(.*$str\([^ ]*\).*\)\$/$str\2"\t"\1/"
end end
end end