浏览代码

fix(cli): execute as expected if `ksh_arrays` is set (#11629)

Erin Schlarb 1 年之前
父节点
当前提交
5b11e70a96
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/cli.zsh

+ 1 - 1
lib/cli.zsh

@@ -11,7 +11,7 @@ function omz {
 
   # Subcommand functions start with _ so that they don't
   # appear as completion entries when looking for `omz`
-  (( $+functions[_omz::$command] )) || {
+  (( ${+functions[_omz::$command]} )) || {
     _omz::help
     return 1
   }