67e109adbe
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) |
||
---|---|---|
.. | ||
fork1.0 | ||
fork2.0 | ||
func1.0 | ||
func2.0 | ||
func3.0 | ||
redir1.0 | ||
redir2.0 | ||
redir3.0 | ||
redir4.0 | ||
unknown1.0 | ||
var-assign1.0 |