question mark character can also be in glob patterns.

This commit is contained in:
Andrés N. Robalino 2019-09-10 12:26:56 -05:00
parent b15bb2c667
commit 540e93aa3a
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ impl WholeStreamCommand for LS {
} }
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build("ls").optional("path", SyntaxType::Path) Signature::build("ls").optional("path", SyntaxType::Pattern)
} }
fn usage(&self) -> &str { fn usage(&self) -> &str {

View File

@ -713,6 +713,7 @@ fn is_bare_char(c: char) -> bool {
'=' => true, '=' => true,
'~' => true, '~' => true,
':' => true, ':' => true,
'?' => true,
_ => false, _ => false,
} }
} }