NetBSD/bin/sh
kre c531b5689e When a return occurs in the test part of a loop statement (while/until)
(inside a function or dot script) the exit status of that return
statement should become the exit status of the function (or dot
script) - we were ignoring it,

That is
	fn() { while return 7; do return 9; done; return 11; }
should exit with status 7.   It was exiting 0.

This is apparently another old ash bug that has been fixed
everywhere else in the past.

Issue pointed out by Martijn Dekker, (fairly obvious) fix borrowed
from FreeBSD, due for return sometime next century.
2019-05-04 02:52:55 +00:00
..
bltin
funcs
USD.doc
alias.c Allocate alias pointers for qsort() to use on the stack, rather than 2019-02-09 09:11:07 +00:00
alias.h
arith_token.c
arith_tokens.h
arithmetic.c
arithmetic.h
builtins.def Add the "specialvar" built-in command. Discussed (well, mentioned 2019-02-14 11:15:24 +00:00
cd.c
cd.h
error.c PR bin/53919 2019-02-04 11:16:41 +00:00
error.h PR bin/53919 2019-02-04 11:16:41 +00:00
eval.c When a return occurs in the test part of a loop statement (while/until) 2019-05-04 02:52:55 +00:00
eval.h PR bin/53919 2019-02-04 11:16:41 +00:00
exec.c
exec.h
expand.c PR bin/54112 2019-04-10 08:13:11 +00:00
expand.h
histedit.c Remove a function prototype which was added to <histedit.h> in 2005. 2019-02-10 19:21:52 +00:00
init.h
input.c KNF - white space changes, indent using tabs not spaces. NFC. 2019-02-09 09:20:47 +00:00
input.h
jobs.c Fix a logic botch that prevented "wait -n" (with no pid args) from 2019-03-26 13:32:26 +00:00
jobs.h
machdep.h
mail.c
mail.h
main.c When an interactive shell exits due to an EOF on stdin, send a newline 2019-02-09 09:33:20 +00:00
main.h
Makefile
memalloc.c INTON / INTOFF audit and cleanup. 2019-02-09 03:35:55 +00:00
memalloc.h
miscbltin.c
miscbltin.h
mkbuiltins
mkinit.sh
mknodenames.sh
mknodes.sh Add some error checking, and stop assuming what the input 2019-01-19 13:08:50 +00:00
mkoptions.sh
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes
option.list
options.c
options.h
output.c
output.h
parser.c Fix an (apparent) ancient ash bug, that was apparently fixed sometime 2019-05-04 02:52:22 +00:00
parser.h Delete a no-longer-used #define that referred to a struct field that 2019-02-13 21:40:50 +00:00
redir.c The previous commit was obviously made by a broken mindless automoton 2019-03-01 06:15:01 +00:00
redir.h
sh.1 Bump date for previous. 2019-04-22 04:10:33 +00:00
shell.h NFCI - DEBUG mode only change. 2019-01-22 13:48:28 +00:00
show.c DEBUG mode only change. When pretty-printing a word from a parse 2019-02-14 13:27:59 +00:00
show.h
syntax.c Add a couple of comments. NFC. 2019-02-04 09:56:48 +00:00
syntax.h Finish the fixes from Feb 4 for handling of random data that 2019-02-27 04:10:56 +00:00
TOUR
trap.c Better interactive SIGINT handling (when a trap is set), and other 2019-04-25 03:54:10 +00:00
trap.h
var.c Add the "specialvar" built-in command. Discussed (well, mentioned 2019-02-14 11:15:24 +00:00
var.h
version.h