This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: getopts missing with latest cygwin
- To: cygwin at sources dot redhat dot com
- Subject: Re: getopts missing with latest cygwin
- From: Chet Ramey <chet at nike dot ins dot cwru dot edu>
- Date: Tue, 10 Oct 2000 16:12:59 -0400
- Read-Receipt-To: chet@po.CWRU.Edu
- Reply-To: chet at po dot CWRU dot Edu
> >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.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com