2 ms·
I wonder what happens when $var starts with ‘-‘, it wouldn’t surprise me if it’s taken as an option.
by tinus_hn 6y ago
I wonder what happens when $var starts with ‘-‘, it wouldn’t surprise me if it’s taken as an option.
- dolmen 6y agoIt's time to read the article.
- tinus_hn 6y agoAh, upon rereading it turns out it is still an issue: ... would fail to run test commands whose left-hand side matched a unary operator. This was fixed [...] in 1979. However, test and [ were also available as separate executables, and appear to have retained a variant of the buggy behavior: