Project

General

Profile

Actions

Bug #822

open

bash-completion sometimes completes too much

Added by Simon Marchi over 9 years ago. Updated over 8 years ago.

Status:
Confirmed
Priority:
Low
Assignee:
Target version:
Start date:
07/28/2014
Due date:
% Done:

0%

Estimated time:

Description

I am not sure how to word it, but here is an example. I have a single session, named "auto-20140728-134322".

$ lttng des<tab> => $ lttng destroy

That's good, now let's press tab again:

$ lttng destroy <tab> => $ lttng destroy auto-20140728-134322

That's good, now let's press tab again:

$ lttng destroy auto-20140728-134322 <tab> => $ lttng destroy auto-20140728-134322 auto-20140728-134322

Oops, we can go like that for a long time. Every <tab> press adds a "auto-20140728-134322". It should detect that we already gave a positional argument. Since the command takes only one positional argument, subsequent <tab> presses should do nothing.

Actions

Also available in: Atom PDF