From: Bourne Without <blackhole@airpost.net>
To: Neutron Soutmun <neo.neutron@gmail.com>
Cc: kadlec@blackhole.kfki.hu, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] ipset: Fix syntax error of bash completion in Debian environment
Date: Wed, 15 May 2013 21:24:11 +0200 [thread overview]
Message-ID: <5193E0DB.3040700@airpost.net> (raw)
In-Reply-To: <CAMQP0s=EsD4+k-WV6hf=0P13Bpcbg_hYVw4cPWys9srCW4NGFA@mail.gmail.com>
On 12.05.2013 14:07, Neutron Soutmun wrote:
> Cc-d script's author
>
Hello,
thanks for reporting.
> On Sun, May 12, 2013 at 4:28 PM, Neutron Soutmun <neo.neutron@gmail.com> wrote:
>> Debian packaging tool (lintian) warns the syntax error of bash completion
>> as it uses the extglob shell option that should be run in
>> the ** #!/usr/bin/env bash ** and the shell option set should be moved to
>> global scope.
>>
>> Signed-off-by: Neutron Soutmun <neo.neutron@gmail.com>
>> ---
>> utils/ipset_bash_completion/ipset_bash_completion | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/utils/ipset_bash_completion/ipset_bash_completion b/utils/ipset_bash_completion/ipset_bash_completion
>> index cc7ea7b..8a0b91d 100644
>> --- a/utils/ipset_bash_completion/ipset_bash_completion
>> +++ b/utils/ipset_bash_completion/ipset_bash_completion
>> @@ -1,4 +1,4 @@
>> -#!/bin/bash
>> +#!/usr/bin/env bash
Actually I think the shebang isn't required at all.
Does the debian tool just warn?
>>
>> # -----------------------------------------------------------------
>> # Programmable completion code for ipset (netfilter.org)
>> @@ -47,6 +47,8 @@
>> #
>> # -----------------------------------------------------------------
>>
>> +shopt -s extglob
>> +
updated this in the dev branch (github / sourceforge).
[...]
Best regards
next prev parent reply other threads:[~2013-05-15 19:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-12 9:28 [PATCH] ipset: Fix syntax error of bash completion in Debian environment Neutron Soutmun
2013-05-12 12:07 ` Neutron Soutmun
2013-05-15 19:24 ` Bourne Without [this message]
2013-05-16 9:46 ` Neutron Soutmun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5193E0DB.3040700@airpost.net \
--to=blackhole@airpost.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=neo.neutron@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.