Samuel Bronson wrote: [...] > ,---- > | q > | Quote the resulting words with backslashes; unprintable or invalid > | characters are quoted using the $'\NNN' form, with separate quotes > | for each octet. [...] > `---- > > Unfortunately, the second clause seems to be only half correct; > unprintable characters do get wrapped in $'...', but not \NNN escaped: > > ,---- > | naesten@hydrogen:~/hacking/crawl/crawl-ref/source% echo -n ${(q)$(echo > | -e "\e")}|hd > | 00000000 24 27 1b 27 |$'.'| > | 00000004 > `---- > > Of course, what I'd *really* like would be for this to get escaped as > \e, not \NNN, but I was at least expecting the documented behavior!
This is not a bug. It's echo being echo (ie. a load of $swearword). zsh% printf '%s\n' ${(q)$(echo -e "\e")} $'\033' Regards, Frank -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org