[Bash-completion-devel] RFC: Better long option with argument completion

2009-04-13 Thread Ville Skyttä
Hello, Currently completion of long options that take arguments is pretty bad. For an example, many completions list things like --foo= in their compgen -W strings which end up completed as --foo\= which is annoying, especially the trailing space. Some completions use internal workarounds

[Bash-completion-devel] [bash-completion-Bugs][31 1595] tries to execute ssh UserKnownHostsFile

2009-04-13 Thread bash-completion-bugs
Bugs item #311595, was changed at 11/04/2009 04:30 by David Paleino You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=311595group_id=100114 Status: Pending Priority: 3 Submitted By: Olivier Crête (tester-guest) Assigned to: David Paleino (hanska-guest)

[Bash-completion-devel] [bash-completion-Bugs][31 1510] Add .ape to mplayer supported extensions.

2009-04-13 Thread bash-completion-bugs
Bugs item #311510, was changed at 27/02/2009 16:26 by David Paleino You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=311510group_id=100114 Status: Closed Priority: 3 Submitted By: Santiago Moisés Mola Velasco (coldwind-guest) Assigned to: Ville Skyttä

[Bash-completion-devel] [bash-completion-Bugs][31 1544] quote_readline breaks filenames with spaces co mpletion with bash 4

2009-04-13 Thread bash-completion-bugs
Bugs item #311544, was changed at 15/03/2009 21:02 by David Paleino You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=311544group_id=100114 Status: Closed Priority: 3 Submitted By: Ville Skyttä (scop-guest) Assigned to: Mike Kelly (pioto-guest) Summary:

[Bash-completion-devel] [bash-completion-Bugs][31 1595] tries to execute ssh UserKnownHostsFile

2009-04-13 Thread bash-completion-bugs
Bugs item #311595, was changed at 11/04/2009 04:30 by David Paleino You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=311595group_id=100114 Status: Closed Priority: 3 Submitted By: Olivier Crête (tester-guest) Assigned to: David Paleino (hanska-guest)

[Bash-completion-devel] [bash-completion-Bugs][31 1420] DBTS 511132: completion for mplayer ignores .iso files

2009-04-13 Thread bash-completion-bugs
Bugs item #311420, was changed at 30/01/2009 10:42 by David Paleino You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=311420group_id=100114 Status: Pending Priority: 1 Submitted By: David Paleino (hanska-guest) Assigned to: David Paleino (hanska-guest)

[Bash-completion-devel] [bash-completion-Bugs][31 1420] DBTS 511132: completion for mplayer ignores .iso files

2009-04-13 Thread bash-completion-bugs
Bugs item #311420, was changed at 30/01/2009 10:42 by David Paleino You can respond by visiting: https://alioth.debian.org/tracker/?func=detailatid=413095aid=311420group_id=100114 Status: Open Priority: 1 Submitted By: David Paleino (hanska-guest) Assigned to: David Paleino (hanska-guest)

Re: [Bash-completion-devel] RFC: Better long option with argument completion

2009-04-13 Thread David Paleino
On Mon, 13 Apr 2009 14:23:09 +0300, Ville Skyttä wrote: Hello, Hello Ville, Currently completion of long options that take arguments is pretty bad. Yes, definitely. For an example, many completions list things like --foo= in their compgen -W strings which end up completed as --foo\=

Re: [Bash-completion-devel] RFC: Better long option with argument completion

2009-04-13 Thread Ville Skyttä
On Monday 13 April 2009, David Paleino wrote: On Mon, 13 Apr 2009 14:23:09 +0300, Ville Skyttä wrote: The patch looks good to me, just one *curiosity* (i.e. only curiosity, nothing to fix :P): why are you quoting + prev=${cur%%?(\\)=*} + cur=${cur#*=} ? No

Re: [Bash-completion-devel] mount label|uuid

2009-04-13 Thread Ville Skyttä
On Sunday 12 April 2009, gibbo...@gmail.com wrote: COMPREPLY=( $( sed -n /UUID/s/^UUID=\($cur[0-9a-f-]\{,36\}\).*/\1/Ip /etc/fstab ) ) I think this would be better put as: COMPREPLY=( $( compgen -W '$( sed -ne s/^UUID=\([^[:space:]]*\).*/\1/p /etc/fstab )' -- $cur ) ) compgen -W ... -- $cur