freebsd-skq/bin/sh
Stefan Farfeleder f9ec075e88 Reset the internal state used for the 'getopts' built-in when 'shift' or 'set'
are used to modify the arguments.  Not doing so caused random memory reads or
null pointer dereferences when 'getopts' was called again later (SUSv3 says
getopts produces unspecified results in this case).

PR:	48318
2008-03-22 14:06:01 +00:00
..
bltin
funcs
alias.c
alias.h
arith_lex.l
arith.h cvs -d stefanf@ncvs.FreeBSD.org:/home/ncvs 2005-08-13 07:54:23 +00:00
arith.y
builtins.def
cd.c Split updatepwd() into two smaller functions. The first one, findpwd(), 2008-02-24 16:50:55 +00:00
cd.h
error.c
error.h
eval.c
eval.h
exec.c
exec.h
expand.c
expand.h
histedit.c
init.h
input.c
input.h
jobs.c
jobs.h
mail.c
mail.h
main.c
main.h
Makefile
memalloc.c
memalloc.h
miscbltin.c
mkbuiltins
mkinit.c
mknodes.c
mksyntax.c Fix "warning: comparison is always false due to limited range of data type" 2008-02-18 20:01:33 +00:00
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes
options.c Reset the internal state used for the 'getopts' built-in when 'shift' or 'set' 2008-03-22 14:06:01 +00:00
options.h
output.c
output.h
parser.c
parser.h
redir.c
redir.h
sh.1 Revise the markup. 2007-12-05 12:29:26 +00:00
shell.h
show.c
show.h
TOUR
trap.c
trap.h
var.c
var.h