freebsd-dev/tools/regression/bin/sh/execution
Jilles Tjoelker 67e109adbe sh: Do not allow overriding a special builtin with a function.
This is a syntax error.

POSIX does not say explicitly whether defining a function with the same name
as a special builtin is allowed, but it does say that it is impossible to
call such a function.

A special builtin can still be overridden with an alias.

This commit is part of a set of changes that will ensure that when
something looks like a special builtin to the parser, it is one. (Not the
other way around, as it remains possible to call a special builtin named
by a variable or other substitution.)

Exp-run done by:	pav (with some other sh(1) changes)
2010-10-24 22:03:21 +00:00
..
fork1.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
fork2.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
func1.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
func2.0 sh: Get rid of unnecessary non-standard empty lists. 2010-08-16 17:18:08 +00:00
func3.0 sh: Do not allow overriding a special builtin with a function. 2010-10-24 22:03:21 +00:00
redir1.0 sh: Reduce unnecessary testsuite failures with other shells. 2010-08-16 22:23:19 +00:00
redir2.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
redir3.0 sh: Add a test trying to close a descriptor that is not open. 2010-10-24 19:56:34 +00:00
redir4.0 sh: Check whether dup2 was successful for >&FD and <&FD. 2010-10-24 20:09:49 +00:00
unknown1.0 sh: Send the "xyz: not found" message to redirected fd 2. 2009-10-06 22:00:14 +00:00
var-assign1.0 sh: Apply variable assignments left-to-right in bltinlookup(). 2010-09-11 14:15:50 +00:00