[Bash-completion-devel] perl -x
hv at crypt.org
hv at crypt.org
Tue Feb 8 13:29:56 UTC 2011
The '-x' flag to perl changes the way it handles the program file you pass
to it.
The file bash-completion/completions/perl:_perl() currently does this:
-I|-x)
local IFS=$'\n'
_compopt_o_filenames
COMPREPLY=( $( compgen -d $optPrefix $optSuffix -- "$cur" ) )
return 0
;;
I don't understand completion logic, but I suspect -x should simply be
removed from this case, and allowed instead to fall through to the later
"else _filedir". Certainly it doesn't expect a directory argument to
follow it, as -I does.
Hope this helps,
Hugo van der Sanden
More information about the Bash-completion-devel
mailing list