mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-04 12:41:16 -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:
@@ -310,7 +310,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
|
||||
# Don't allow setting color other than what linux offers (see #2001)
|
||||
functions -e set_color
|
||||
function set_color --shadow-builtin
|
||||
function set_color
|
||||
set -l term_colors black red green yellow blue magenta cyan white normal
|
||||
for a in $argv
|
||||
if not contains -- $a $term_colors
|
||||
|
||||
Reference in New Issue
Block a user