Commit 42b0db6c21cc4f8bcf177a19158238e3f7bb77b3
1 parent
0bf5a61c42
Fixing ? not being recognized by using egrep.
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
antigen.zsh
| ... | ... | @@ -621,7 +621,7 @@ antigen () { |
| 621 | 621 | fi |
| 622 | 622 | |
| 623 | 623 | # The specification for this argument, used for validations. |
| 624 | - local arg_line="$(echo "$keyword_args" | grep "^$name:\??\?" | head -n1)" | |
| 624 | + local arg_line="$(echo "$keyword_args" | egrep "^$name:?\??" | head -n1)" | |
| 625 | 625 | |
| 626 | 626 | # Validate argument and value. |
| 627 | 627 | if [[ -z $arg_line ]]; then |