From 42b0db6c21cc4f8bcf177a19158238e3f7bb77b3 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 22 Mar 2013 01:29:32 -0400 Subject: [PATCH] Fixing ? not being recognized by using egrep. --- antigen.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antigen.zsh b/antigen.zsh index 30589f9..2c736b7 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -621,7 +621,7 @@ antigen () { fi # The specification for this argument, used for validations. - local arg_line="$(echo "$keyword_args" | grep "^$name:\??\?" | head -n1)" + local arg_line="$(echo "$keyword_args" | egrep "^$name:?\??" | head -n1)" # Validate argument and value. if [[ -z $arg_line ]]; then -- 2.0.0