News for hackers. Stuff that matters.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible by tempodox on Friday June 26, 2020 @05:17AM (#23650136)
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.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible by gravitas on Friday June 26, 2020 @08:32AM (#23651238)
[ 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.
Re:Show HN: Aviary.sh – A tiny Bash alternative to Ansible by tempodox on Friday June 26, 2020 @09:12AM (#23651568)
I 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).