> It's not a shell built-in, as Tim says it's a normal command
> (/usr/bin/printf).
I know. I first looked in tcsh and didn't find it then saw it was a
free-standing UNIX command. Oh for the VMS days when one could read the
release notes avidly and know the OS developments. It was the Power
Tools people who were talking about it being included in UNIX shells.
> Works OK in awk for me too, on solaris and linux:
>
> % echo hello | awk '{printf "%20s\n", $1}'
> hello
It was the C-shell overriding it. awk had been doing its stuff.
Later I tried other awk things then realised the C-shell was the problem
but didn't return to the printf. Well it was about 04h.
Malcolm
|