Re: busybox awk doesn't allow print statements in for loop head

2023-10-30 Thread Oğuz
On Monday, October 30, 2023, Steffen Nurpmeso wrote: > > Have you reported this for mawk, too? > On it, didn't know it was still maintained. Thanks -- Oğuz ___ busybox mailing list busybox@busybox.net

Re: busybox awk doesn't allow print statements in for loop head

2023-10-30 Thread Steffen Nurpmeso
Oğuz wrote in : |Reproduce by: | | busybox awk 'BEGIN{for(print 5;0;);}' | |POSIX allows a print statement on both sides of the loop condition, so |this should print 5 (and does so with GNU awk). But it fails with this |error message instead: | |awk: cmd. line:1: Unexpected token

busybox awk doesn't allow print statements in for loop head

2023-10-30 Thread Oğuz
Reproduce by: busybox awk 'BEGIN{for(print 5;0;);}' POSIX allows a print statement on both sides of the loop condition, so this should print 5 (and does so with GNU awk). But it fails with this error message instead: awk: cmd. line:1: Unexpected token