diff --git a/src/commands/ls.rs b/src/commands/ls.rs index 709614150..d2a0f6c03 100644 --- a/src/commands/ls.rs +++ b/src/commands/ls.rs @@ -10,7 +10,7 @@ impl WholeStreamCommand for LS { } fn signature(&self) -> Signature { - Signature::build("ls").optional("path", SyntaxType::Path) + Signature::build("ls").optional("path", SyntaxType::Pattern) } fn usage(&self) -> &str { diff --git a/src/parser/parse/parser.rs b/src/parser/parse/parser.rs index 66656619d..0be05af06 100644 --- a/src/parser/parse/parser.rs +++ b/src/parser/parse/parser.rs @@ -713,6 +713,7 @@ fn is_bare_char(c: char) -> bool { '=' => true, '~' => true, ':' => true, + '?' => true, _ => false, } }