www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/15/06:39:46

Date: Mon, 15 May 1995 11:16:30 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: max AT alcyone DOT darkside DOT com
Subject: Re: @ in command line misinterpreted?
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> I'm attempting to use a '@' character as one of the inputs to the 
> command line, and it doesn't appear to be being parsed correctly.  
> Either the argument starting with the '@' doesn't get parsed through 
> at all (it just doesn't show up when stepping through argv), or it 
> appears as garbage.

DJGPP supports response files as one of the methods of supplying long
command lines to programs.  The way you supply the name of the response
file (which holds the command line arguments) makes the `@' character
special.  If you have to use it verbatim, you must escape it.  This is
explained in the DJGPP FAQ list:
 
16.5  Q: How do I pass an argument which begins with the `@' character?
      A: Surround that argument with single or double quotes.
 
And the previous question (16.4) describes the various methods of passing
long command lines.

You can find the latest version of the DJGPP FAQ list as faq101.zip on the
same site you got DJGPP.

- Raw text -


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