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

(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?

--- Forwarded mail from Matthias Kopfermann <matthias@xxxxxxxxxxxxxx>

Date: Fri, 26 Mar 2004 16:29:13 +0100
From: Matthias Kopfermann <matthias@xxxxxxxxxxxxxx>
To: schaefer@xxxxxxxxxxxxxxxx
Subject: printf for converting numbers to letters, bug?

hi bart (hero:) )!

I wanted to do printf "%c\n" {65..101}
to get some ascii-letters and did not succeed.

Is this wanted behaviour?

        Matthias


---End of forwarded mail from Matthias Kopfermann <matthias@xxxxxxxxxxxxxx>



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