From: "Ludovic Courtès" <ludo@gnu.org>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 43509@debbugs.gnu.org
Subject: [bug#43509] [PATCH] bash completion: Fix completion for commands and subcommands.
Date: Mon, 21 Sep 2020 23:41:18 +0200 [thread overview]
Message-ID: <871riuiz9d.fsf@gnu.org> (raw)
In-Reply-To: <20200919125251.3124-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Sat, 19 Sep 2020 15:52:51 +0300")
Hi!
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?
Thanks,
Ludo’.
next prev parent reply other threads:[~2020-09-21 21:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-19 12:52 [bug#43509] [PATCH] bash completion: Fix completion for commands and subcommands Oleg Pykhalov
2020-09-21 21:41 ` Ludovic Courtès [this message]
2020-09-24 15:57 ` bug#43509: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871riuiz9d.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=43509@debbugs.gnu.org \
--cc=go.wigust@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).