[Bash-completion-devel] [bash-completion-Bugs][311383] DBTS 282799: completion of fd redirect after find command limited to directories

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Mon Apr 25 11:20:54 UTC 2011


Bugs item #311383, was changed at 2009-01-30 10:14 by Ville Skyttä 
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311383&group_id=100114

>Status: Closed
Priority: 3
Submitted By: David Paleino (hanska-guest)
>Assigned to: Ville Skyttä  (scop-guest)
Summary: DBTS 282799: completion of fd redirect after find command limited to directories  
Distribution: None
Originally reported in: Debian BTS
>Milestone: 2.0
>Status: Fix Committed
Original bug number: 282799


Initial Comment:
 find > foo
ask for autocompletion there, only directories are taken into
account.
 ls > foo
or
 cat > foo
autocomplete to all filenames (directories and non-directories), as it
should.


----------------------------------------------------------------------

>Comment By: Ville Skyttä  (scop-guest)
Date: 2011-04-25 14:20

Message:
http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=32dbe76784acc39b17ee9ca7bc21c28f4f2b23b5
http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=06cf9c2a85bf8ed2086452dfd2b941c021d391a5#patch1

----------------------------------------------------------------------

Comment By: Leonard Crestez (cdleonard-guest)
Date: 2010-03-04 23:46

Message:
This actually applies to all completions in general. Right now if you type > and tab you get the same completion as for the regular command. You do not get special completion for files.

It just so happens that most completions work with files by default so it seems to work. But all completions are affected, this is not in any way specific to find.

Fixing this would require calling a special function which checks if there's a redirection operator somewhere and if so completes all filenames.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311383&group_id=100114



More information about the Bash-completion-devel mailing list