Gentoo Archives: gentoo-dev

From: Bertrand Jacquin <beber@××××××××.net>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] [PATCH] bash-completion-r1: support for aliasing completions for commands
Date: Wed, 27 Aug 2014 16:01:12
Message-Id: e16c966f3df8a70fbce7dfbdd848c54d@mail.meleeweb.net
In Reply to: [gentoo-dev] [PATCH] bash-completion-r1: support for aliasing completions for commands by "Michał Górny"
1 Hi Michał,
2
3 On 2014-08-27 17:06, Michał Górny wrote:
4
5 > Please review.
6
7 > +bashcomp_alias() {
8 > + debug-print-function ${FUNCNAME} "${@}"
9 > +
10 > + [[ ${#} -lt 2 ]] && die "Usage: ${FUNCNAME} <basename> <alias>..."
11 > + local base=${1} f
12 > + shift
13 > +
14 > + for f; do
15
16 is there a missing 'in "$@" after 'for f' ? f is never initialized.
17
18 > + dosym "${base}" "$(_bash-completion-r1_get_bashcompdir)/${f}"
19 > + done
20 > +}
21
22 --
23 Beber

Replies

Subject Author
Re: [gentoo-dev] [PATCH] bash-completion-r1: support for aliasing completions for commands Alexander Kapshuk <alexander.kapshuk@×××××.com>