delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/08/14:27:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 8 Apr 2004 14:26:49 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Gcc/ld and long command lines (> 32k)
Message-ID: <20040408182649.GF24612@coc.bosbc.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20040408172115 DOT GB24612 AT coc DOT bosbc DOT com> <NUTMEGy0gZOx11gduhX000003dd AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
In-Reply-To: <NUTMEGy0gZOx11gduhX000003dd@NUTMEG.CAM.ARTIMI.COM>
User-Agent: Mutt/1.4.1i

On Thu, Apr 08, 2004 at 06:45:01PM +0100, Dave Korn wrote:
>> -----Original Message-----
>> From: cygwin-owner On Behalf Of Christopher Faylor
>> Sent: 08 April 2004 18:21
>
>> On Thu, Apr 08, 2004 at 10:00:56AM -0700, Peter A. Castro wrote:
>> >The @filename syntax is used by MS's linker (Visual 
>> C++/Studio).  To my
>> >knowledge gcc's linker doesn't support this syntax.
>> 
>> The cygwin DLL supports it (implemented over my gagged and 
>> thrashing body)
>> but only at a non-cygwin-shell command prompt, e.g.,
>> 
>> c:\>gcc -o foo @foo.blah
>> 
>> works
>> 
>> but
>> 
>> bash$ gcc -o foo @foo.blah
>> 
>> doesn't.
>
>Yow.  The *DLL* expands that?  Eww.  I understand why you had to be
>tied down, that's soooo the wrong place for it.  WRS implemented it
>into their versions of the binutils, which seems like the right place
>for it.  Maybe getopts should understand it.  Perhaps even bash.  But
>putting it in the DLL?  <gag!>

I think maybe DJGPP does things that way so there was precedent for it.

>Can I at least escape the @ sign if I really do want to pass "@word" as
>an argv entry?  I like to use parameters with an @ char prefixing them
>in my own tools, and I don't want the parameter to suddenly be replaced
>by the contents of a file that happens to have the same name....!

Quoting the @ defeats it.  Probably \@ does too.  And, just using a
cygwin shell (ash, bash, tcsh, zsh) for everything bypasses that code
entirely.

cgf

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