cobra
cobra copied to clipboard
fix(bash-v2): activeHelp length check syntax
$ set -u
$ foo=()
$ echo ${#foo}
bash: foo: unbound variable
echo ${#foo[*]}
0
#1702 requires a rebase after this is in, will take care of it.
Nice catch! Thanks @scop. I'll run some tests on this next week and get it merged. I assume this was the only unbound variable problem with ActiveHelp?
The only one I happened to hit with my normal usage patterns, yes. I didn't analyze beyond that.