5b11e70a9617c6e248fd6947e84016bd8c37028e
- Author
- Erin Schlarb <erin-dev@ninetailed.ninja>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(cli): execute as expected if `ksh_arrays` is set (#11629)
Diff
1diff --git a/lib/cli.zsh b/lib/cli.zsh
2index ba3e39eb52bf3d489530354db4e076c82a3bd2cb..561c1b98b12e54d17332195f5e46b7efea71c25b 100644
3--- a/lib/cli.zsh
4+++ b/lib/cli.zsh
5@@ -11,7 +11,7 @@ function omz {
6
7 # Subcommand functions start with _ so that they don't
8 # appear as completion entries when looking for `omz`
9- (( $+functions[_omz::$command] )) || {
10+ (( ${+functions[_omz::$command]} )) || {
11 _omz::help
12 return 1
13 }