SIGN IN SIGN UP
spf13 / cobra UNCLAIMED

A Commander for modern Go CLI interactions

0 0 142 Go

fix(bash-v2): activeHelp length check syntax (#1762)

```shell
$ set -u
$ foo=()
$ echo ${#foo}
bash: foo: unbound variable
echo ${#foo[*]}
0
```
The above shows that an empty array needs the suffix `[*]` when checking its length, or else it is considered unbound.
V
Ville Skyttä committed
f911c0b89c6e0c41b6ad218c9235d8706c36a1b2
Parent: 7790bf9
Committed by GitHub <noreply@github.com> on 8/13/2022, 9:44:47 PM