From 540e93aa3ada4d722cc6eac7df64322cb83e9097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20N=2E=20Robalino?= Date: Tue, 10 Sep 2019 12:26:56 -0500 Subject: [PATCH] question mark character can also be in glob patterns. --- src/commands/ls.rs | 2 +- src/parser/parse/parser.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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, } }