Reserve some builtin names

`argparse`, `read`, `set`, `status`, `test` and `[` now can't be used
as function names anymore.

This is because (except for `test` and `[`) there is no way to wrap these properly, so any
function called that will be broken anyway.

For `test` (and `[`), there is nothing that can be added and there
have been confused users who created a function that then broke
everything.

Fixes #3000.
This commit is contained in:
Fabian Homborg
2018-02-25 19:25:29 +01:00
parent 5648322993
commit 69f68d31df
5 changed files with 14 additions and 1 deletions

View File

@@ -46,4 +46,6 @@ logmsg Checking that the copied functions are identical other than the name
diff (functions name1 | psub) (functions name1a | psub)
diff (functions name3 | psub) (functions name3a | psub)
logmsg Checking reserved names
function test; echo banana; end
exit 0