mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-26 02:51:16 -03:00
Disallow parsing 'and' and 'or' as commands
Except for and --help and or --help Fixes #6089
This commit is contained in:
@@ -156,6 +156,7 @@ static wcstring token_type_user_presentable_description(
|
||||
|
||||
switch (type) {
|
||||
// Hackish. We only support the following types.
|
||||
case symbol_decorated_statement:
|
||||
case symbol_statement:
|
||||
return L"a command";
|
||||
case symbol_argument:
|
||||
|
||||
Reference in New Issue
Block a user