Re: [Bash-completion-devel] Always using [[ instead of [

2011-11-20 Thread Ville Skyttä
On 11/20/2011 03:28 AM, Igor Murzov wrote: That's not true. Double brackets still need quotes: -- $ x=a\ b $ y=a\ bc $ [[ $y == $x* ]] echo [$x] is prefix of [$y] $ [[ $y == $x* ]] echo [$x] is prefix of [$y] [a\ b] is prefix of [a\ bc]

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-50-g834379e

2011-11-20 Thread Ville Skyttä
On 11/20/2011 12:05 PM, Ville Skyttä wrote: On 11/20/2011 02:45 AM, Igor Murzov wrote: What about something like this?: -- $ for f in /usr{,/local}/lib{,64}/valgrind/*; do [[ -x $f $f != *.so ]] echo $f | sed -ne

Re: [Bash-completion-devel] Always using [[ instead of [

2011-11-20 Thread Igor Murzov
On Sun, 20 Nov 2011 12:00:36 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/20/2011 03:28 AM, Igor Murzov wrote: That's not true. Double brackets still need quotes: -- $ x=a\ b $ y=a\ bc $ [[ $y == $x* ]] echo [$x] is prefix of [$y] $ [[

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-54-gf0283e1

2011-11-20 Thread Ville Skyttä
On 11/20/2011 03:14 PM, Igor Murzov wrote: The following commit has been merged in the master branch: commit f0283e1c1b64202bb1adb9f44eac6fdfd80edece Author: Igor Murzov e-m...@date.by Date: Sun Nov 20 17:00:03 2011 +0300 Cleanups: Make code more compact. Drop useless

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-54-gf0283e1

2011-11-20 Thread Igor Murzov
On Sun, 20 Nov 2011 16:39:54 +0200 Ville Skyttä ville.sky...@iki.fi wrote: On 11/20/2011 03:14 PM, Igor Murzov wrote: The following commit has been merged in the master branch: commit f0283e1c1b64202bb1adb9f44eac6fdfd80edece Author: Igor Murzov e-m...@date.by Date: Sun Nov 20 17:00:03

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-54-gf0283e1

2011-11-20 Thread Ville Skyttä
On 11/20/2011 06:47 PM, Igor Murzov wrote: On Sun, 20 Nov 2011 16:39:54 +0200 Ville Skyttä ville.sky...@iki.fi wrote: BTW I believe we've until now used pretty consistently $( foo ) instead of $(foo) but this commit introduces a bunch of the latter, making things somewhat less consistent

[Bash-completion-devel] squashing bug #311844 (completion for /sbin/tc)

2011-11-20 Thread Raphaël Droz
I'm back with this one: http://alioth.debian.org/tracker/index.php?func=detailaid=311844group_id=100114atid=413095 http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01042.html I reworked the whole so that it's far more readable/reviewable, even with its 900 LOC. I've

Re: [Bash-completion-devel] [SCM] bash-completion branch, master, updated. 1.90-59-g2932491

2011-11-20 Thread Ville Skyttä
On 11/20/2011 08:07 PM, Ville Skyttä wrote: The following commit has been merged in the master branch: commit 2932491a2c1ec611194d55a9390b708a32403b35 Author: Ville Skyttä ville.sky...@iki.fi Date: Sun Nov 20 20:01:13 2011 +0200 dict: Speed up word completion with common use cases and

Re: [Bash-completion-devel] completion for setxkbmap(1)

2011-11-20 Thread Raphaël Droz
On Fri, Aug 19, 2011 at 11:24:23AM +0300, Ville Skyttä wrote: On 08/18/2011 09:39 PM, Raphaël Droz wrote: attached, needs review *Very* unthrorough one below: sed -n '/! '$1'/{n; :a; /^!/q; p; n;b a;}' ${2:-$files}|awk '{print $1}' How portable is this sed statement? I don't