printf("%c", 0) on AWK do nothing.

Katsuhiro Watanabe katsu at srava.sra.JUNET
Fri Aug 18 12:48:05 AEST 1989


	Hello, world.(I am a user of 4.3BSD on VAX)
	Something wrong with `printf("%c",0)' on AWK of BSD.

n125:101%awk 'BEGIN{printf("%c",0);exit}' |wc
       0       0       0
n125:102%awk 'BEGIN{printf("%c",1);exit}' |wc
       0       0       1

	I guess AWK uses sprintf().
					thank you.

PS: It works fine on gawk.

----____----____
WATANABE Katsuhiro
Software Tools and Technology Division, SRA Inc., Japan.
Not compute f(x), but evaluate it.



More information about the Comp.bugs.4bsd.ucb-fixes mailing list