- _man(): eval requires double backslash escaping of ls

This commit is contained in:
ianmacd 2002-03-13 06:29:52 +00:00
parent 5d3313a2ce
commit fbcd289b6d

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.195 2002/03/11 19:36:44 ianmacd Exp $
# $Id: bash_completion,v 1.196 2002/03/13 07:29:52 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -432,7 +432,7 @@ _man()
fi
# redirect stderr for when path doesn't exist
COMPREPLY=( $( eval \ls "$manpath" 2>/dev/null ) )
COMPREPLY=( $( eval \\ls "$manpath" 2>/dev/null ) )
# weed out directory path names and paths to man pages
COMPREPLY=( ${COMPREPLY[@]##*/?(:)} )
# strip suffix from man pages