mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-21 23:11:17 -03:00
Eliminate / vet and whitelist some more globals
This commit is contained in:
@@ -762,8 +762,8 @@ static bool append_syntax_error(parse_error_list_t *errors, size_t source_locati
|
||||
}
|
||||
|
||||
/// Returns 1 if the specified command is a builtin that may not be used in a pipeline.
|
||||
static const wcstring_list_t forbidden_pipe_commands({L"exec", L"case", L"break", L"return",
|
||||
L"continue"});
|
||||
static const wchar_t *const forbidden_pipe_commands[] = {L"exec", L"case", L"break", L"return",
|
||||
L"continue"};
|
||||
static int parser_is_pipe_forbidden(const wcstring &word) {
|
||||
return contains(forbidden_pipe_commands, word);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user