Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (Fwd) printf for converting numbers to letters, bug?
- X-seq: zsh-workers 19697
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: (Fwd) printf for converting numbers to letters, bug?
- Date: Fri, 26 Mar 2004 12:00:42 -0500
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1040326164256.ZM18660@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1040326164256.ZM18660@xxxxxxxxxxxxxxxxxxxxxxx>
> 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