traditional awk: lazy splitting of $0?

2007-10-21 Thread Ralf Wildenhues
I have a question about traditional awk (that came up while working on Paolo's pending autotest patch), regarding this note in autoconf.texi: Traditional Awk has a limit of 99 fields in a record. You may be able to circumvent this problem by using `split'. Can I rely on the fact that s

Re: traditional awk: lazy splitting of $0?

2007-10-22 Thread Paul Eggert
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Can I rely on the fact that splitting of $0 is done lazily? I vaguely recall that traditional Awk worked that way, yes. Sort of lazily, anyway: it split all of $0 if you accessed any $i where i>0. > works with Solaris 2.6 awk If it works with an aw

Re: traditional awk: lazy splitting of $0?

2007-11-17 Thread Ralf Wildenhues
Hello Paul, oldish thread: * Paul Eggert wrote on Mon, Oct 22, 2007 at 09:03:35AM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > Can I rely on the fact that splitting of $0 is done lazily? > > I vaguely recall that traditional Awk worked that way, yes. Sort of > lazily, anyway: it s

Re: traditional awk: lazy splitting of $0?

2007-11-17 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Ralf Wildenhues on 11/17/2007 1:38 AM: > Oh well. Tru64 4.0D awk doesn't work that way: > > $ perl -e 'print "x "x200;' | awk '{print $0}' > awk: Line x x x x x x x x x x cannot have more than 199 fields. > Tru64 4.0D awk > even s