Mail Archives: cygwin/2004/08/16/20:17:35
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 <<EOF
> > $program
> > EOF
> >
> > look like the culprit. They should be using xargs instead...
>
> Not true. Running an awk program several times on a subsets of the
> files, as xargs may do, isn't necessarily going to have the same
> effect as running it once on all the files.
Ah, but I wasn't suggesting that. I was thinking of using xargs to invoke
gawk with one long argument, instead of passing it on the command line...
However, now that I think of it, that's probably no different than running
it from the shell... Oh, well... I guess Hans's solution with mktemp is
the best under the circumstances.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -