Correct typo in man-page
PATCH 1/2 Correct typo in man-page
"This values is ..." should be "This value is ...".
--- src/ipset.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/ipset.8 +1 -1
@@ -925,7 +925,7 @@ The \fBhash:ip,mark\fR set type uses a hash to store IP address and packet mark Optional \fBcreate\fR options: .TP \fBmarkmask\fR \fIvalue\fR -Allows you to set bits you are interested in the packet mark. This values is then used to perform bitwise AND operation for every mark added. +Allows you to set bits you are interested in the packet mark. This value is then used to perform bitwise AND operation for every mark added. markmask can be any value between 1 and 4294967295, by default all 32 bits are set. .PP The
Signature · 1 line
2.47.2
PATCH 2/2 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").
--- utils/ipset_bash_completion/ipset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/ipset_bash_completion/ipset +1 -1
@@ -362,7 +362,7 @@ _ipset_get_ifnames() { while read -r; do REPLY="${REPLY#*: }" printf "%s\n" ${REPLY%%:*} -done < <(PATH=${PATH}:/sbin ( command ip -o link show ) 2>/dev/null) +done < <(( PATH=${PATH}:/sbin command ip -o link show ) 2>/dev/null) } _ipset_get_iplist() {
Signature · 1 line
2.47.2
Re: [PATCH ipset 2/2] bash-completion: restore fix for syntax error
Hi Jeremy,
Sorry for the extremely long delay: your patches were set aside then were forgotten. Both of your patches are applied.
Best regards,
Jozsef
Quoted 37 lines · Jeremy Sowden
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 commit0378d91222c1("Bash completion utility updated").Fixes 0378d91222c1 ("Bash completion utility updated")Signed-off-by Jeremy Sowden <[email protected]>--- utils/ipset_bash_completion/ipset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)utils/ipset_bash_completion/ipset +1
-1@@ -362,7 +362,7 @@ _ipset_get_ifnames() { while read -r; do REPLY="${REPLY#*: }" printf "%s\n" ${REPLY%%:*} -done < <(PATH=${PATH}:/sbin ( command ip -o link show ) 2>/dev/null) +done < <(( PATH=${PATH}:/sbin command ip -o link show ) 2>/dev/null) } _ipset_get_iplist() {Signature · 1 line
2.47.2
Signature · 3 lines
E-mail : [email protected], [email protected], [email protected] Address: Wigner Research Centre for Physics H-1525 Budapest 114, POB. 49, Hungary
Re: [PATCH ipset 2/2] bash-completion: restore fix for syntax error
Quoted 2 lines · Jozsef Kadlecsik
Sorry for the extremely long delay: your patches were set aside then were forgotten. Both of your patches are applied.
No problem. :)
Thanks,
J.