Re: [PATCH v2] read: non-raw-mode fixes

2023-08-01 Thread Chet Ramey
On 7/26/23 7:53 PM, Grisha Levit wrote: On Wed, Jul 26, 2023 at 2:23 PM Grisha Levit wrote: If the last character read was an (unescaped) backslash, store it as such instead of as a CTLESC. Avoids: $ printf '\\' | { read; echo "${REPLY@Q}"; } bash: DEBUG warning: dequote_string: string with b

[PATCH v2] read: non-raw-mode fixes

2023-07-26 Thread Grisha Levit
On Wed, Jul 26, 2023 at 2:23 PM Grisha Levit wrote: > If the last character read was an (unescaped) backslash, store it as > such instead of as a CTLESC. Avoids: > > $ printf '\\' | { read; echo "${REPLY@Q}"; } > bash: DEBUG warning: dequote_string: string with bare CTLESC > $'\001' Sorry that w