[Bash-completion-devel] [bash-completion-Bugs][313635] Complete any filename correctly

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Wed May 16 11:04:10 UTC 2012


Bugs item #313635, was changed at 2012-05-16 11:00 by Igor Murzov
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313635&group_id=100114

>Status: Closed
Priority: 3
Submitted By: Victor Engmark (l0b0-guest)
Assigned to: Nobody (None)
Summary: Complete any filename correctly 
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
How to reproduce:
1. cd -- "$(mktemp -d)"
2. Run `touch $'foo\nbar'`
3. Type `rm foo` and press TAB

Result: Prints two autocompletion items "bar" and "foo".

Expected result: Should autocomplete the full quoted filename with embedded newline.

Probably the only way to do this for all filenames would be to separate completions internally by \0.

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

>Comment By: Igor Murzov (garik-guest)
Date: 2012-05-16 15:04

Message:
Duplicate of the bug #311399 (https://alioth.debian.org/tracker/index.php?func=detail&aid=311399&group_id=100114&atid=413095).
And also this bug is probably the bug in bash. You can ask bash developers to use '\0' for compgen as a separator, this would solve the issue.

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

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



More information about the Bash-completion-devel mailing list