Subject: Re: echo weirdness
To: Patrick Welche <>
From: Johnny Billquist <>
List: current-users
Date: 02/18/2004 16:07:38
On Wed, 18 Feb 2004, Patrick Welche wrote:

> On Wed, Feb 18, 2004 at 12:04:08AM +0000, David Laight wrote:
> > Fot portability use printf(1) - which is a builtin in netbsd /bin/sh.
> There I was surpised that printf "%c" 65 gets me 6, not A, but it is
> what it says in the man page.. any idea how to do int <-> char conversion
> in a script?

Well, if you can live with octal, just do

printf "\nnn"


Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email:           ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol