Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" Subject: Re: igawk problem Date: Wed, 18 Aug 2004 11:16:04 -0700 Lines: 39 Message-ID: References: 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 <$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 < -- {} '"$@"' $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/