[Bash-completion-devel] [bash-completion-Bugs][311389] DBTS 350232: shopt -s no_empty_cmd_completion not quite durable enough

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Fri Jan 30 08:42:50 UTC 2009


Bugs item #311389, was opened at 30/01/2009 09:42
Status: Open
Priority: 3
Submitted By: David Paleino (hanska-guest)
Assigned to: Nobody (None)
Summary: DBTS 350232: shopt -s no_empty_cmd_completion not quite durable enough  
Distribution: None
Originally reported in: Debian BTS
Original bug number: 350232


Initial Comment:
`shopt -s no_empty_cmd_completion' allows us to paste in segments of
bash scripts with indenting via X's copy buffer, without erronously
triggering bash completion.

However, it only works if we use either tabs or spaces exclusively in
the scripts being copied.  If a line being pasted contains a bunch of
spaces, then a tab, then completion is attempted on all ~4000 items in
one's PATH.

Spaces alone should hence be treated as an empty readline buffer for
the purposes of no_empty_cmd_completion.


Alternatively, if it is at all possible to detect that the contents of
a copy buffer are being pasted into bash (via either shift-insert, or
the middle mouse button), then bash should have the option to turn off
completion all together, for the duration of the copy.


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

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



More information about the Bash-completion-devel mailing list