This is the mail archive of the
mailing list for the Cygwin project.
Re: Question about ash and getopts
- From: seebs at plethora dot net (Peter Seebach)
- To: cygwin at cygwin dot com
- Date: Mon, 29 Dec 2003 13:54:35 -0600
- Subject: Re: Question about ash and getopts
- Reply-to: seebs at plethora dot net (Peter Seebach)
In message <Pine.GSO.firstname.lastname@example.org>, Igor Pechtcha
>I'm sure this discussion is in the archives somewhere.
A first run of casual searching hasn't turned it up.
However, since I happen to have an unmunged ash source around, I removed
getopts from it.
# Without getopts
$ ls -l obj/sh
-rwxr-xr-x 1 seebs wheel 116024 Dec 29 12:50 obj/sh
# with getopts
$ ls -l obj/sh
-rwxr-xr-x 1 seebs wheel 116440 Dec 29 12:51 obj/sh
Is this some kind of practical joke? The one thing I saw in the archive
said that removing getopts saved 13k of space.
To remove getopts, I removed:
* The reference to getoptscmd in builtin.def
The entirety of options.c only has about 3k of code in it at all.
Admittedly, I did this compile on NetBSD, but the code in question is 100%
portable, and the same everywhere. It sounds to me like someone trimmed a
lot of things, without any attention at all to how large the individual things
I don't think anyone can convince me that a 416-byte difference in code, or
even twice that, is big enough to justify thumbing one's nose at POSIX.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html