[Bash-completion-devel] [bash-completion-Bugs][311858] _get_cword breaks command substitution

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Thu Jul 30 17:41:45 UTC 2009


Bugs item #311858, was opened at 2009-07-30 20:41 by Ville Skyttä 
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311858&group_id=100114

Status: Open
Priority: 3
Submitted By: Ville Skyttä  (scop-guest)
Assigned to: Nobody (None)
Summary: _get_cword breaks command substitution 
Distribution: None
Originally reported in: Fedora / Red Hat Bugzilla
Milestone: None
Status: None
Original bug number: 512625


Initial Comment:
_get_cword breaks command substitutions ($(...), `...`) by turning them into literal strings.

For example, when one writes "somecommand $(cat /tmp/f<TAB>" the intention is to complete /tmp/f* files, but if the "somecommand" completion does `_get_cword`, that stuff turns to a literal '$(cat /tmp/f' string which is then processed later in the "somecommand" completion function.

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

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



More information about the Bash-completion-devel mailing list