glibc/manual
Zack Weinberg bf079e19f5 getopt: remove USE_NONOPTION_FLAGS
glibc's implementation of getopt includes code to parse an environment
variable named _XXX_GNU_nonoption_argv_flags_ (where XXX is the
current process's PID in decimal); but all of it has been #ifdefed out
since 2001, with no official way to turn it back on.

According to commentary in our config.h.in, bash version 2.0 set this
environment variable to indicate argv elements that were the result of
glob expansion and therefore should not be treated as options, but the
feature was "disabled later" because "it caused problems".  According
to bash's CHANGES file, "later" was release 2.01; it gives no more
detail about what the problems were.

Version 2.0 of bash was released on the last day of 1996, and version
2.01 in June of 1997.  Twenty years later, I think it is safe to
assume that this environment variable isn't coming back.

	* config.h.in (USE_NONOPTION_FLAGS): Remove.
	* csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
	* sysdeps/mach/hurd/i386/init-first.c: Likewise.
	* posix/getopt_int.h: Likewise.
	* posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
	__libc_argc and __libc_argv externs, which were only used by
	#ifdef USE_NONOPTION_FLAGS blocks.
	* posix/getopt_init.c: Remove file.
	* posix/Makefile (routines): Remove getopt_init.
	* include/getopt.h: Don't declare __getopt_initialize_environment.
	* manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
	a comment.
2017-04-07 07:45:53 -04:00
..
examples Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
argp.texi
arith.texi Add fromfp functions. 2016-12-31 00:40:59 +00:00
charset.texi
check-safety.sh Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
conf.texi timezone: Remove TZNAME_MAX limit from sysconf [BZ #15576] 2017-03-07 17:45:38 +01:00
contrib.texi Fix a typo in the manual. 2017-02-08 01:34:12 -08:00
creature.texi
crypt.texi
ctype.texi
debug.texi
dir
errno.texi
fdl-1.3.texi
filesys.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
freemanuals.texi
getopt.texi getopt: remove USE_NONOPTION_FLAGS 2017-04-07 07:45:53 -04:00
header.texi
install-plain.texi
install.texi Deprecate libnsl by default (only shared library will be 2017-03-21 15:14:27 +01:00
intro.texi
io.texi
ipc.texi
job.texi
lang.texi
lgpl-2.1.texi
libc-texinfo.sh
libc.texinfo Update copyright dates not handled by scripts/update-copyrights. 2017-01-01 00:26:24 +00:00
libcbook.texi
libdl.texi
libm-err-tab.pl Do not hardcode list of libm functions in libm-err-tab.pl. 2017-02-06 17:55:59 +00:00
llio.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
locale.texi
macros.texi
maint.texi
Makefile Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
math.texi Do not hardcode list of libm functions in libm-err-tab.pl. 2017-02-06 17:55:59 +00:00
memory.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
message.texi
nss.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
nsswitch.texi
pattern.texi
pipe.texi
platform.texi
probes.texi User manual documentation for tunables 2016-12-31 23:49:24 +05:30
process.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
resource.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
search.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
setjmp.texi
signal.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
socket.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
startup.texi
stdio-fp.c
stdio.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
string.texi
summary.awk Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sysinfo.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
syslog.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
terminal.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
texinfo.tex Update miscellaneous files from upstream sources. 2016-12-21 16:05:55 +00:00
texis.awk
threads.texi
time.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
tsort.awk Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tunables.texi User manual documentation for tunables 2016-12-31 23:49:24 +05:30
users.texi manual: Convert @tables of variables to @vtables. 2016-12-21 01:36:58 -08:00
xtract-typefun.awk