Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh can output non-printable characters to the terminal in some error messages
On 2026-06-10 18:55:46 +0200, Mikael Magnusson wrote:
> Hmm, did you make the same mistake I did there? Eg, we didn't include
> the #!/bin/zsh shebang. My script was run with /bin/sh and I suspect
> so was yours?
Yes, sorry. I actually intended to source the file, but forgot.
And the fact that the error message doesn't show the interpreter
doesn't help to detect the mistake.
qaa% . ./test.zsh file$'\033'\[H$'\033'\[c$'\n'$'\b'
./test.zsh:1: permission denied: file^[[H^[[c\n^H
So, everything is fine with zsh.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author