News for hackers. Stuff that matters.
Re:Elegant Bash Conditionals by mr-wendel on Tuesday March 02, 2021 @02:49PM (#26319645)
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.

There are no comments on this comment yet.