[Bash-completion-devel] [bash-completion-Bugs][314656] Completion after "perl -l" does not complete filenames.

Pavel Raiskup praiskup at redhat.com
Wed Apr 16 08:32:52 UTC 2014


Hello Shlomi, thanks for reporing,

On Tuesday 15 of April 2014 14:52:25
> I'm on Mageia Linux 5 Cauldron using bash-completion-2.1-6.mga5 and
> after I do this:
> 
> shlomif at telaviv1:~$ echo $'#!/usr/bin/perl\nprint "Hello\\n";' > myperl.pl
> shlomif at telaviv1:~$ perl -l m[tab]
> 
> The [tab] does not complete. perl -l [tab] does not complete either.
> 
> OTOH doing:
> 
> shlomif at telaviv1:~$ perl -l myperl.pl 
> Hello
> 
> shlomif at telaviv1:~$ 
> 
> Works fine.
> 
> Please look into fixing it.

Looking at "perl --help | grep -- -l", command 'perl -l script' itself is
not correct usage of '-l' option.  The '-l' expects octal value
determining new-line symbol.  When you run 'perl -l13', completion works
OK.  I don't think that completing script name at that place makes sense,
that would just lead to confusion.

Pavel




More information about the Bash-completion-devel mailing list