On Tue, Jan 3, 2012 at 5:58 PM, Frank Terbeck <f...@bewatermyfriend.org> wrote: > 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
Oh, really? Leaves one wondering about the point of "echo -e"... -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org