This is the mail archive of the
mailing list for the Cygwin project.
getopts, POSIX, and the sh(1) man page
- From: seebs at plethora dot net (Peter Seebach)
- To: cygwin at cygwin dot com
- Date: Thu, 27 Feb 2003 22:03:36 -0600
- Subject: getopts, POSIX, and the sh(1) man page
- Reply-to: seebs at plethora dot net (Peter Seebach)
Shouldn't the sh(1) man page mention the lack of getopts, rather than
documenting a feature which apparently got taken out?
For that matter, it seems to me that taking out a core POSIX feature is not
a very good way to make a shell smaller. getopts(1) was standardized because
it's VERY USEFUL. A script that calls #!/bin/sh can, on any POSIX system,
expect getopts(1) to be available. This is a portability problem; requiring
a user to ask for bash to get a standard POSIX feature is misleading at
best. The implementation, which *did* exist at one point, can't have been
all *THAT* big. Or maybe it should just get added to /bin. Looking at the
code in another copy of ash, this is just plain not a big enough chunk of
code to be worth taking out.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html