freebsd-nq/bin/sh
Jilles Tjoelker 2935c4cc5e sh: Make return return from the closest function or dot script.
Formerly, return always returned from a function if it was called from a
function, even if there was a closer dot script. This was for compatibility
with the Bourne shell which only allowed returning from functions.

Other modern shells and POSIX return from the function or the dot script,
whichever is closest.

Git 1.8.4's rebase --continue depends on the POSIX behaviour.

Reported by:	Christoph Mallon, avg
2013-09-04 22:10:16 +00:00
..
bltin
funcs
alias.c sh: Recognize "--" as end of options in alias builtin. 2013-08-25 11:42:53 +00:00
alias.h
arith_yacc.c
arith_yacc.h
arith_yylex.c sh: Reject ++ and -- in arithmetic. 2013-08-24 20:06:00 +00:00
arith.h
builtins.def
cd.c sh: Prefer internal nextopt() to libc getopt(). 2012-09-15 21:56:30 +00:00
cd.h
error.c
error.h
eval.c sh: Make return return from the closest function or dot script. 2013-09-04 22:10:16 +00:00
eval.h sh: Make return return from the closest function or dot script. 2013-09-04 22:10:16 +00:00
exec.c sh: Recognize "--" as end of options in type builtin. 2013-08-30 12:09:59 +00:00
exec.h
expand.c sh: Fix various compiler warnings. 2013-04-01 17:18:22 +00:00
expand.h sh: Expand here documents in the current process. 2013-02-03 15:54:57 +00:00
histedit.c sh: Prefer internal nextopt() to libc getopt(). 2012-09-15 21:56:30 +00:00
input.c sh: Remove #define MKINIT. 2013-07-25 19:48:15 +00:00
input.h sh: Remove mkinit. 2013-07-25 15:08:41 +00:00
jobs.c sh: Fix race condition with signals and wait or set -T. 2013-09-02 21:57:46 +00:00
jobs.h sh: Fix race condition with signals and wait or set -T. 2013-09-02 21:57:46 +00:00
mail.c
mail.h
main.c sh: Make return return from the closest function or dot script. 2013-09-04 22:10:16 +00:00
main.h
Makefile sh: Remove mkinit. 2013-07-25 15:08:41 +00:00
memalloc.c sh: Remove linked list of stack marks. 2013-05-11 20:51:00 +00:00
memalloc.h sh: Remove linked list of stack marks. 2013-05-11 20:51:00 +00:00
miscbltin.c sh: Improve error handling in read builtin: 2013-05-03 15:28:31 +00:00
mkbuiltins
mknodes.c
mksyntax.c sh: Simplify mksyntax and make it fit for cross-compiling. 2013-02-07 22:42:33 +00:00
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat sh: Add const to nodesavestr(). 2013-04-07 16:28:36 +00:00
nodetypes sh: Expand here documents in the current process. 2013-02-03 15:54:57 +00:00
options.c sh: Remove XXX comment about removing nextopt(). 2012-09-08 19:24:03 +00:00
options.h
output.c sh: Remove output.c's reset() handler. 2013-07-25 13:09:17 +00:00
output.h sh: Detect and flag write errors on stdout in builtins. 2012-12-12 22:01:10 +00:00
parser.c sh: Simplify list() in the parser. 2013-08-30 20:50:28 +00:00
parser.h sh: Cast -1 to pointer rather than pointer to variable of wrong type. 2013-08-30 10:45:02 +00:00
redir.c sh: Remove unnecessary reset functions. 2013-08-16 20:24:41 +00:00
redir.h sh: Remove unnecessary reset functions. 2013-08-16 20:24:41 +00:00
sh.1 sh: Make return return from the closest function or dot script. 2013-09-04 22:10:16 +00:00
shell.h sh: Remove #define MKINIT. 2013-07-25 19:48:15 +00:00
show.c
show.h
TOUR sh: Remove mkinit. 2013-07-25 15:08:41 +00:00
trap.c sh: Fix race condition with signals and wait or set -T. 2013-09-02 21:57:46 +00:00
trap.h sh: Fix race condition with signals and wait or set -T. 2013-09-02 21:57:46 +00:00
var.c sh: Recognize "--" as end of options in local builtin. 2013-08-14 21:59:48 +00:00
var.h