[Bash-completion-devel] [bash-completion-Bugs][311411] ULP 254426: Autocomplete of fileames with backquote expansion leaves garbage
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Mon Dec 19 22:48:12 UTC 2011
Bugs item #311411, was changed at 2009-01-30 11:27 by Ville Skyttä
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311411&group_id=100114
>Status: Closed
Priority: 2
Submitted By: David Paleino (hanska-guest)
Assigned to: Nobody (None)
Summary: ULP 254426: Autocomplete of fileames with backquote expansion leaves garbage
Distribution: None
Originally reported in: Ubuntu Launchpad
>Milestone: 2.0
Status: None
Original bug number: 254426
Initial Comment:
With Bash programable autocomplete (/etc/bash_completion), commands within backquotes containing a space doesn't get autocompleted properly:
$ touch ~/some_file_`date -I`.txt
$ ls ~/some_file_`date -I`.txt
/home/gaby/some_file_2008-08-03.txt
So far this works, but if I press the <TAB> key at the end of the command:
$ ls ~/some_file`date /home/gaby/some_file_2008-08-03.txt
The autocompletion doesn't overwrite the whole argument and leaves "~/some_file`date " in front of it.
----------------------------------------------------------------------
>Comment By: Ville Skyttä (scop-guest)
Date: 2011-12-20 00:48
Message:
I'm not sure exactly where is the <TAB> hit supposed to be in this line:
$ ls ~/some_file`date /home/gaby/some_file_2008-08-03.txt
If at end of line after "txt", I'm not at all sure what I'd like it to complete to. Anyway, 1.90 and current git don't complete anything there, which I think is one sensible approach, assuming fixed.
----------------------------------------------------------------------
Comment By: Igor Murzov (garik-guest)
Date: 2011-12-19 19:55
Message:
I can't reproduce this.
----------------------------------------------------------------------
Comment By: David Paleino (hanska-guest)
Date: 2009-01-30 11:28
Message:
DBTS 511151:
From: James Westby <james.westby at canonical.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: Autocomplete of fileames with backquote expansion leaves garbage
Date: Wed, 07 Jan 2009 19:53:22 +0000
Package: bash-completion
Version: 20080705
Severity: minor
Hi,
In https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/254426
"dermoth" reported the following.
"
With Bash programable autocomplete (/etc/bash_completion), commands
within backquotes containing a space doesn't get autocompleted properly:
$ touch ~/some_file_`date -I`.txt
$ ls ~/some_file_`date -I`.txt
/home/gaby/some_file_2008-08-03.txt
So far this works, but if I press the <TAB> key at the end of the
command:
$ ls ~/some_file`date /home/gaby/some_file_2008-08-03.txt
The autocompletion doesn't overwrite the whole argument and leaves
"~/some_file`date " in front of it.
"
Confirmed on sid.
Note that you have to have "~" or a directory portion, the bug
doesn't happen if you complete a filename in cwd.
Thanks,
James
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311411&group_id=100114
More information about the Bash-completion-devel
mailing list