Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: (Fwd) printf for converting numbers to letters, bug?



> Looks like "%c" is interpreting the argument as a string and printing
> the first character thereof.  It should work more like %d, shouldn't it?

Not according to POSIX; the argument to %b, %c, or %s is to be
interpreted as a string.

If we had octal brace expansion, he could do something like
printf "%b\n" \\0{101..145}



Messages sorted by: Reverse Date, Date, Thread, Author