Re: quotearg: shell escape issue with single quote

2024-04-03 Thread Pádraig Brady
On 03/04/2024 22:33, Bruno Haible wrote: Hi Pádraig, The attached should fix this issue. process_input: + bool pending_shell_escape_end = false; It has a syntax error: With clang and with GCC versions < 11, it is invalid to put a declaration after a label. See: === foo

Re: quotearg: shell escape issue with single quote

2024-04-03 Thread Bruno Haible
Hi Pádraig, > The attached should fix this issue. > process_input: > + bool pending_shell_escape_end = false; It has a syntax error: With clang and with GCC versions < 11, it is invalid to put a declaration after a label. See: === foo.c = int main () { goto

Re: quotearg: shell escape issue with single quote

2024-04-03 Thread Pádraig Brady
On 31/03/2024 22:02, Bruno Haible wrote: Pádraig Brady wrote: If a string starts with a sequence that requires $'' quoting followed by a \' and then another charactrer requiring $'' quoting, the '$' at the start of the quoted string ends up missing: $ env printf '%q\n' $'\1\'\2' '\0

Re: quotearg: shell escape issue with single quote

2024-03-31 Thread Bruno Haible
Pádraig Brady wrote: > > If a string starts with a sequence that requires $'' quoting followed > > by a \' and then another charactrer requiring $'' quoting, the '$' at > > the start of the quoted string ends up missing: > > > > $ env printf '%q\n' $'\1\'\2' > > '\001'\'''$'\002' > > In

Re: quotearg: shell escape issue with single quote

2024-03-31 Thread Pádraig Brady
On 31/03/2024 02:16, Grisha Levit wrote: If a string starts with a sequence that requires $'' quoting followed by a \' and then another charactrer requiring $'' quoting, the '$' at the start of the quoted string ends up missing: $ env printf '%q\n' $'\1\'\2' '\001'\'''$'\002' Indeed