| www.delorie.com/archives/browse.cgi | search |
| From: | Martin Stromberg <eplmst AT lu DOT erisoft DOT se> |
| 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: | <Pine.SUN.3.91.1001127084605.15394I-100000@is> from "Eli Zaretskii" at Nov 27, 2000 08:46:20 AM |
| X-Mailer: | ELM [version 2.5 PL3] |
| MIME-Version: | 1.0 |
| 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 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |