On Mon, Apr 4, 2022 at 2:10 PM Bart Schaefer wrote: > > On Mon, Apr 4, 2022 at 8:31 AM Bart Schaefer wrote: > > > > Remaining are that ${(V)...} doesn't output the same format in > > single-byte mode, and that {$'\\0'..$'\\C-?'} doesn't expand to a > > range. > > Here's a patch for the {a..z} discrepancy. nicechar() now prefers the > ^C format to \C-C, in line with multibyte. I left a comment behind to > note a branch that seemingly never occurs in single-byte? I should have looked at ${(V)...} first. Following patch discards the single-byte-only implementation of nicechar() in favor of the "fallback" implementation from multibyte, which fixes ${(V)...} and supersedes the utils.c hunk of the previous patch. (I've nevertheless done them in sequence.)