mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-24 11:41:15 -03:00
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:
@@ -70,3 +70,6 @@ Function name4 not found as expected
|
||||
< function name3 --argument arg1 arg2
|
||||
---
|
||||
> function name3a --argument arg1 arg2
|
||||
|
||||
####################
|
||||
# Checking reserved names
|
||||
|
||||
Reference in New Issue
Block a user