bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] string_transform: keep \001\001 in ${v@E}


From: Chet Ramey
Subject: Re: [PATCH] string_transform: keep \001\001 in ${v@E}
Date: Fri, 6 Oct 2023 10:17:35 -0400
User-agent: Mozilla Thunderbird

On 9/26/23 1:53 AM, Grisha Levit wrote:
$ v=$'\1\1'; printf '%q\n' "${v@E}"
$'\001'

call ansicstr directly instead of through ansiexpand so we don't end up
trimming existing CTLESC CTLESC in the string with dequote_escapes

Thanks for the report.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]