delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/18/14:16:46

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
To: cygwin AT cygwin DOT com
From: "Hans Horn" <hannes AT 2horns DOT com>
Subject: Re: igawk problem
Date: Wed, 18 Aug 2004 11:16:04 -0700
Lines: 39
Message-ID: <cg06d5$rn2$1@sea.gmane.org>
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> <cfluvo$hfj$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0408161959540 DOT 6952 AT slinky DOT cs DOT nyu DOT edu>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: p1.almaden.ibm.com
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-IsSubscribed: yes

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 <<EOF >$tmpname
> $program
> EOF
> eval gawk $opts -- -f $tmpname '"$@"' \
>  && rm -f $tmpname

If I understand the gawk man page right, -- is used to indicate the end of
the gawk arg list.
So the order of the args must be changed to

gawk $opts -f $tmpname -- '"$@"' && rm -f $tmpname

This happens to work - even under aix!

The next one gives "xargs: argument line too long" :

> gawk -- "$expand_prog" /dev/stdin <<EOF | eval xargs -0i gawk $opts
> -- {} '"$@"' $program
> EOF

You suggested in one of your earlier replies to submit this as a fix
upstream. How does one do that?
Would you mind doing it instead? After all, you were really the one that
came up with a solution.

greets,
H.





--
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