- _man(): eval requires double backslash escaping of ls
This commit is contained in:
parent
5d3313a2ce
commit
fbcd289b6d
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# 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>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -432,7 +432,7 @@ _man()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# redirect stderr for when path doesn't exist
|
# 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
|
# weed out directory path names and paths to man pages
|
||||||
COMPREPLY=( ${COMPREPLY[@]##*/?(:)} )
|
COMPREPLY=( ${COMPREPLY[@]##*/?(:)} )
|
||||||
# strip suffix from man pages
|
# strip suffix from man pages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user