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
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 The exit status of a case statement where none of the patterns is matched 2007-10-04 16:14:48 +00:00
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 Reduce the WARNS level to avoid a compiler warning about a variable 2007-11-18 01:53:07 +00:00
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 Take care that the input to setenv() may actually be a pointer straight 2007-07-06 04:04:58 +00:00
var.h