Hacker News new | past | comments | ask | show | jobs | submit login

You got it! `test` is a shell builtin. `[` is basically syntactic sugar, and is a synonym for `test` with the additional requirement that the last argument must be a closing bracket `]`. `[[` is a shell keyword with more features.



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

Search: