Re: igawk problem

2004-08-18 Thread Hans Horn
Hi Igor. > We'll see what Corinna says. The above solution does introduce a > dependency on mktemp that the gawk maintainers may not wish... > Igor yes indeed - on my aix box there was no mktemp - I had to roll my own. Is mktemp part of any of the core packages ? If yes, which one? H. --

Re: igawk problem

2004-08-18 Thread Igor Pechtchanski
On Wed, 18 Aug 2004, Hans Horn wrote: > Hi Igor, > > thanks for all your insightful advice. > > However, none of your suggestions work ootb. Hans, None of the suggestions were tested. Sorry for missing the "--" in the arg list -- I should have been more careful. > This one doesn't do anythi

Re: igawk problem

2004-08-18 Thread Hans Horn
Hi Igor, thanks for all your insightful advice. However, none of your suggestions work ootb. This one doesn't do anything: > tmpname=`mktemp` > gawk -- "$expand_prog" /dev/stdin <$tmpname > $program > EOF > eval gawk $opts -- -f $tmpname '"$@"' \ > && rm -f $tmpname If I understand the gawk m

Re: igawk problem

2004-08-16 Thread Igor Pechtchanski
On Sun, 15 Aug 2004, Yitzchak Scott-Thoennes wrote: > On Fri, Aug 13, 2004 at 11:30:49PM -0400, Igor Pechtchanski wrote: > > This looks like an upstream igawk portability bug -- the lines > > > > processed_program=`gawk -- "$expand_prog" /dev/stdin < > $program > > EOF > > > > look l

Re: igawk problem

2004-08-16 Thread Igor Pechtchanski
On Sat, 14 Aug 2004, Hans Horn wrote: > Igor, > > thx for your good idea to look what igawk is doing under the hood. > So I tracked things further down and found that the problem is one line > further down than you thought, and does not seem to be cygwin/windows > specific (doesn't work under A

Re: igawk problem

2004-08-15 Thread Yitzchak Scott-Thoennes
On Fri, Aug 13, 2004 at 11:30:49PM -0400, Igor Pechtchanski wrote: > This looks like an upstream igawk portability bug -- the lines > > processed_program=`gawk -- "$expand_prog" /dev/stdin < $program > EOF > > look like the culprit. They should be using xargs instead... Not tr

Re: igawk problem

2004-08-14 Thread Hans Horn
Igor, thx for your good idea to look what igawk is doing under the hood. So I tracked things further down and found that the problem is one line further down than you thought, and does not seem to be cygwin/windows specific (doesn't work under AIX either): The real bad guy is: eval gawk $opts -

Re: igawk problem

2004-08-13 Thread Igor Pechtchanski
On Fri, 13 Aug 2004, Hans Horn wrote: > Group, > > I have a rather lengthy awk script (that internally includes a bunch of awk > library functions; therefore I'm using igawk). > > When I invoke it, e.g. like > > echo | igawk -f script.awk > eval: gawk: argument list too long > > The script and th

igawk problem

2004-08-13 Thread Hans Horn
Group, I have a rather lengthy awk script (that internally includes a bunch of awk library functions; therefore I'm using igawk). When I invoke it, e.g. like echo | igawk -f script.awk eval: gawk: argument list too long The script and the awk library functions together make up approx. 34kByte