diff --git a/src/commands/ls.rs b/src/commands/ls.rs index 7096141507..d2a0f6c032 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 66656619d9..0be05af062 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, } }