4 ms·
Your example only demonstrates the effect of `[[`. If you replace it with `[` the error won't occur. In both cases double-quoting (or not) `$X` makes no diffe
by tempodox 6y ago
Your example only demonstrates the effect of `[[`. If you replace it with `[` the error won't occur. In both cases double-quoting (or not) `$X` makes no difference in the context of your example.
- gravitas 6y ago[ is an external program called "test" and [[ is a bash builtin, they have many different behaviours beyond just trying to use one to prove the other wrong on a random internet comment.
- tempodox 6y agoI merely used that to show that the error message was tied to `[[` and not to the use of double quotes (which your parent comment was asking about).