delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/16/20:17:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 16 Aug 2004 20:17:26 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: igawk problem
In-Reply-To: <20040815183517.GA3512@efn.org>
Message-ID: <Pine.GSO.4.61.0408162015550.6952@slinky.cs.nyu.edu>
References: <cfj317$os8$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 58 DOT 0408132323001 DOT 594 AT slinky DOT cs DOT nyu DOT edu> <20040815183517 DOT GA3512 AT efn DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019