[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
Thu Mar 4 21:46:34 UTC 2010


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

Status: Open
Priority: 3
Submitted By: David Paleino (hanska-guest)
Assigned to: Nobody (None)
Summary: DBTS 282799: completion of fd redirect after find command limited to directories  
Distribution: None
Originally reported in: Debian BTS
Milestone: None
Status: None
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: 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