[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43509: [PATCH] bash completion: Fix completion for commands and subc
From: |
Ludovic Courtès |
Subject: |
bug#43509: [PATCH] bash completion: Fix completion for commands and subcommands. |
Date: |
Thu, 24 Sep 2020 17:57:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
Ludovic Courtès <ludo@gnu.org> skribis:
> Oleg Pykhalov <go.wigust@gmail.com> skribis:
>
>> * etc/completion/bash/guix
>> (_guix_complete_command, _guix_complete_subcommand): Fix completion.
>
> Oops, I see. Could you mention in the commit log that this is a
> followup to 3794ce93be8216d8378df7b808ce7f53b1e05a53, which broke it all
> (right?).
>
>> # Cache the list of commands to speed things up.
>> - _guix_commands="$(guix --help 2> /dev/null \
>> - | grep '^ ' | cut -c 2-)"
>> + _guix_commands="$(guix --help 2> /dev/null | awk '/^ [a-z]/ { print
>> $1 }')"
>
> Could we avoid awk?
I went ahead and did that in 8e0c5033b17fcf1e4596ee9a3d52157900acc6fa.
Completion’s back! :-)
Ludo’.