]> git.ipfire.org Git - thirdparty/ipset.git/commit
bash-completion: restore fix for syntax error
authorJeremy Sowden <jeremy@azazel.net>
Fri, 7 Feb 2025 20:08:13 +0000 (20:08 +0000)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Fri, 18 Apr 2025 12:42:23 +0000 (14:42 +0200)
commitff683ac90e8c716164f90112fbd9e46618a78883
tree8bc729cc0b344ef46d2d6891b000dd53986314da
parentf0629de41da21ac3e8cb5f24ee574dca9fcc7c25
bash-completion: restore fix for syntax error

There is a syntax error in a redirection:

  $ bash -x utils/ipset_bash_completion/ipset
  + shopt -s extglob
  utils/ipset_bash_completion/ipset: line 365: syntax error near unexpected token `('
  utils/ipset_bash_completion/ipset: line 365: `done < <(PATH=${PATH}:/sbin ( command ip -o link show ) 2>/dev/null)'

Move the environment variable assignment into the sub-shell.

This fix was previously applied in commit 417ee1054fb2 ("bash-completion:
fix syntax error"), but then reverted, presumably by mistake, in commit
0378d91222c1 ("Bash completion utility updated").

Fixes: 0378d91222c1 ("Bash completion utility updated")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
utils/ipset_bash_completion/ipset