Answer by Harry Weston for What is the `[` program that resides in my...
The [ is always given as an equivalent to test, but I had'nt seen the ] mentioned explicitly, although it is always there. I have just now found this in http://ss64.com/bash/test.html :When the [ form...
View ArticleAnswer by Thorbjørn Ravn Andersen for What is the `[` program that resides in...
The [ command is the same as the test command.It allows you to write rather terse conditional statements in shell scripts. From the SunOS manual page: if [ "$1" = "pear" ] || [ "$1" = "grape" ] || [...
View ArticleAnswer by NlightNFotis for What is the `[` program that resides in my...
The [ binary residing under the /bin tree in many GNU/Linux distributions is not something to be alarmed off. At least in my Fedora 19 it is a part of the coreutils package, as demonstrated below:$ rpm...
View ArticleWhat is the `[` program that resides in my system's /bin?
I was recently browsing my Fedora's /bin folder and noticed a binary named [. I did try to search the internet for more information on that, but I couldn't find anything useful. Running it through...
View Article