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

Actually... it usually is a special case. For performance reasons there are some sneaky things Bash tends to do to avoid spawning lots of extra processes. In this case the `[` binary is more for backwards compatibility.

You can verify this by writing a simple test script and doing (at least on Linux) "strace ./test.sh 2>&1 | grep exec" and observe no explicit call to that binary.



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

Search: