bash_completion uses
 sed -ne 's/.*\(--[-A-Za-z0-9]\{1,\}=\{0,1\}\).*/\1/p'
to parse the options out of the --help output for MANY commands, including grep.

Unfortunately, it trips up on lines like this from grep:
  -r, --recursive           like --directories=recurse

because the .* matches right up to before --directories=recurse.  d'oh.
It gets --directories out of that line.

** Summary changed:

- Completions for some long options are missing.
+ Completions for some long options are missing.  (doesn't parse --help output 
perfectly)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1167533

Title:
  Completions for some long options are missing.  (doesn't parse --help
  output perfectly)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1167533/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to