delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | Chris Faylor <cgf AT cygnus DOT com> |
Date: | Tue, 10 Oct 2000 16:29:48 -0400 |
To: | cygwin AT sources DOT redhat DOT com |
Subject: | Re: getopts missing with latest cygwin |
Message-ID: | <20001010162948.D5706@cygnus.com> |
Reply-To: | cygwin AT sources DOT redhat DOT com |
Mail-Followup-To: | cygwin AT sources DOT redhat DOT com |
References: | <1001010201259 DOT AA89692 DOT SM AT nike DOT ins DOT cwru DOT edu> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.6i |
In-Reply-To: | <1001010201259.AA89692.SM@nike.ins.cwru.edu>; from chet@nike.ins.cwru.edu on Tue, Oct 10, 2000 at 04:12:59PM -0400 |
On Tue, Oct 10, 2000 at 04:12:59PM -0400, Chet Ramey wrote: >> >No, it can't. A separate program cannot propagate the changes to >> >$OPTIND and $OPTARG back to the parent shell. >> >> Btw, I based my assertion that it can be used as a separate program on this: >> >> % ls -l /usr/bin/getopts >> -rwxr-xr-x 1 bin bin 1518 Jul 25 1995 /usr/bin/getopts >> >> I have no idea how it actually is used with sh on this system, though. > >It's not. It simply exists to satisfy a POSIX.2 requirement. It need >not be (and is not) useful. It's not completely useless, though. It does seem to parse command line arguments: % /usr/bin/getopts "a:" foo -a /usr/bin/getopts[7]: getopts: a argument expected It obviously can't place them in the current environment, though. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |