Disallow parsing 'and' and 'or' as commands

Except for and --help and or --help

Fixes #6089
This commit is contained in:
ridiculousfish
2019-09-08 11:09:32 -07:00
parent fa6bac1283
commit e79df33e3a
2 changed files with 9 additions and 0 deletions

View File

@@ -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: