Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/awkbugs/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.






printf("%c", 0);
	could produce unexpected results

the utf function was in the wrong place, so never worked.

another issue, although less trivial, and probably not
a bug, is that, i'd expect this:
	awk 'BEGIN {s="arble z a b c d"; split(s, a, " "); for(i in a){printf("''%s''\n", i)}}'
to print:
'z'
'a'
'b'
'c'
'd'
[or some permutation of the above]

but it doesn't; it actually prints:
'2'
'3'
'4'
'5'
'6'
'1'

this is probably just awk being its usual nasty, unintuitive self.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].