mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
revert the --shadow-builtin flag
Implementing the --shadow-builtin flag has proven to be highly controversial. Revert the introduction of that flag to the `function` command. If someone shoots themselves in the foot by redefining a builtin as a function that's their problem and not our responsibility to protect them from doing so. Fixes #3319
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
function: function name shadows a builtin so you must use '--shadow-builtin'
|
||||
fish: function pwd; end
|
||||
^
|
||||
yes, it failed as expected
|
||||
function: function name does not shadow a builtin so you must not use '--shadow-builtin'
|
||||
fish: function not_builtin --shadow-builtin; end
|
||||
^
|
||||
yes, it failed as expected
|
||||
|
||||
Reference in New Issue
Block a user