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.

Attachment: signature.asc
Description: PGP signature

Reply via email to