From: Adam Spiers <adam@spiers.net>
To: zsh-workers@sunsite.auc.dk
Subject: Re: "getopts" bugs and bad interactions with "shift"
Date: Tue, 23 Nov 1999 18:22:19 +0000 [thread overview]
Message-ID: <19991123182219.A7795@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <991123180832.ZM29676@candle.brasslantern.com>
Bart Schaefer (schaefer@candle.brasslantern.com) wrote:
> Question: Is "getopts" based on some standard or emulated behavior of
> some other shell, or is it strictly a zsh thing?
getopt is part of GNU libc, and according to the info pages:
`getopt' is more standard [than argp_parse] (the short-option only
version of it is a part of the POSIX standard),
Virtually all GNU utilities use it. Also, Perl has the
Getopt::{Std,Long} modules which emulates it precisely, AFAIK. A `man
3 getopt' on my RedHat box confirms what I suspected, which is that
there is only one optstring parameter. It also mumbles stuff about
POSIX being broken ...
next prev parent reply other threads:[~1999-11-23 18:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-23 18:08 Bart Schaefer
1999-11-23 18:22 ` Adam Spiers [this message]
1999-11-23 21:40 ` Bart Schaefer
1999-11-23 22:17 ` zsh 3.0.7 hogs memory James Kirkpatrick
1999-11-24 5:35 ` Bart Schaefer
1999-11-24 16:25 ` James Kirkpatrick
1999-11-30 15:42 ` James Kirkpatrick
1999-11-30 16:03 ` Bart Schaefer
1999-11-23 20:36 ` "getopts" bugs and bad interactions with "shift" Zefram
1999-11-24 11:50 Sven Wischnowsky
1999-11-24 17:44 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19991123182219.A7795@thelonious.new.ox.ac.uk \
--to=adam@spiers.net \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).