From: Martin Stromberg Message-Id: <200011270848.JAA06570@lws256.lu.erisoft.se> Subject: Re: Patch #3 for dtou.c To: djgpp-workers AT delorie DOT com Date: Mon, 27 Nov 2000 09:48:24 +0100 (MET) In-Reply-To: from "Eli Zaretskii" at Nov 27, 2000 08:46:20 AM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Eli said:> > On Sun, 26 Nov 2000, DJ Delorie wrote: > > > I've been using unix now for 15 years, and I've never had to resort to > > the "--" trick. > > What do you do if you need to fgrep for a string that begins with a > dash? > > I agree that "--" is rarely needed, though; the above example is about > the only case I ever needed it. It's needed when a program using getopt() launches another program and you want to send options to the second program. E. g. startx which launches the X server and you want to give the "-bpp 32" option to the X server. Right, MartinS