Import OpenBSD's getopt(3) to workaround broken glibc version.

This commit is contained in:
Nicholas Marriott
2008-12-10 20:25:42 +00:00
parent 3b2859e9dc
commit 5c3d973a4a
29 changed files with 659 additions and 74 deletions

12
CHANGES
View File

@ -1,3 +1,13 @@
10 December 2008
* glibc's getopt(3) is useless: it is not POSIX compliant without jumping through
non-portable hoops, and the method of resetting it is unclear (the man page
on my system says set optind to 1, but other sources say 0). So, import
OpenBSD's getopt_long.c into compat/ for use on Linux and use the clearly
documented optreset = optind = 1 method. This fixes some strange issues
with command parsing (getting the syntax would prevent any further commands
being parsed).
06 December 2008
* Bring set/setw/show/showw into line with other commands. This means that by
@ -762,7 +772,7 @@
(including mutt, emacs). No status bar yet and no key remapping or other
customisation.
$Id: CHANGES,v 1.170 2008-12-08 16:19:51 nicm Exp $
$Id: CHANGES,v 1.171 2008-12-10 20:25:41 nicm Exp $
LocalWords: showw utf UTF fulvio ciriaco joshe OSC APC gettime abc DEF OA clr
LocalWords: rivo nurges lscm Erdely eol smysession mysession ek dstname RB