Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder what happens when $var starts with ‘-‘, it wouldn’t surprise me if it’s taken as an option.


It's time to read the article.


Ah, 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:




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: