[pkg-netfilter-team] Bug#1041605: ipset: bash-completion doesn't work

Jeremy Sowden jeremy at azazel.net
Fri Jul 21 12:23:24 BST 2023


Control: tags -1 confirmed upstream

On 2023-07-21, at 11:53:36 +0200, Slavko wrote:
> after upgrade to bookworm i noticed that bash-completion for ipset
> stops to work, after quick debug i found this:
> 
>     LANG=C bash -x /usr/share/bash-completion/completions/ipset
>     + shopt -s extglob
>     /usr/share/bash-completion/completions/ipset: line 363: syntax error near unexpected token `('
>     /usr/share/bash-completion/completions/ipset: line 363: `done < <(PATH=${PATH}:/sbin ( command ip -o link show ) 2>/dev/null)'
> 
> After removing the "()", it can be sourced and completion starts to
> work as expected. I am not bash guru, that i don't know what is
> problem, perhaps the nesting of "()" inside "<()".

I think it is supposed to be:

  done < <( ( PATH=${PATH}:/sbin command ip -o link show ) 2>/dev/null)'

I.e., the environment variable should be inside the sub-shell.

I will report it upstream.

Thanks.

J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-netfilter-team/attachments/20230721/cb10fd17/attachment.sig>


More information about the pkg-netfilter-team mailing list