Re: [PATCH] WIP: quote_string_for_globbing: unquoted backslash

2023-10-11 Thread Grisha Levit
On Sat, Oct 7, 2023 at 10:42 AM Chet Ramey wrote: > > On 9/26/23 2:50 AM, Grisha Levit wrote: > > I'm not confident in what the right behavior is here, and maybe there is > > no obvious one, but I _think_ this is not desirable: > > > > If an unquoted backslash is followed by a quoted globbing char

Re: [PATCH] WIP: quote_string_for_globbing: unquoted backslash

2023-10-07 Thread Chet Ramey
On 9/26/23 2:50 AM, Grisha Levit wrote: I'm not confident in what the right behavior is here, and maybe there is no obvious one, but I _think_ this is not desirable: If an unquoted backslash is followed by a quoted globbing character, quote_string_for_globbing will store the unquoted backslash a

[PATCH] WIP: quote_string_for_globbing: unquoted backslash

2023-09-25 Thread Grisha Levit
I'm not confident in what the right behavior is here, and maybe there is no obvious one, but I _think_ this is not desirable: If an unquoted backslash is followed by a quoted globbing character, quote_string_for_globbing will store the unquoted backslash and then also another one to quote the char