You are not logged in.
Pages: 1
I have just (successfully) installed Arch on my eeepc using kdemod3
I was browsing around, and discovered a file in my usr/bin directory called just "[".
Is this a legitimate file?
I'm a bit paranoid about security/rootkits/viruses etc, so I hope someone can put my mind at rest.
Thanks in advance
Offline
/usr/bin/[ is owned by coreutils 8.5-2
Offline
[12:11:43] [~] : pacman -Qo /usr/bin/[
/usr/bin/[ is owned by coreutils 8.5-2
It is indeed legitimate
Offline
Sorry, it is definatly legit, just checked.
Last edited by bananaoomarang (2010-09-08 16:15:10)
Offline
if [[ $x == 1 ]]; then
[[ is a bash built in which tests the condition before the ]] and provides an exit status for the if to evaluate
if [ $x == 1 ]; then
[ is a standalone binary (/usr/bin/[) which test the condition before the ] and provides an exit status for the if to evaluate
division of labor here is what lets one but anything within an if statement as long as it provides an exit code
//github/
Offline
Phew!
Thanks everyone.
I'll be able to sleep tonight now!
Offline
[thestinger ~]$ type [[
[[ is a shell keyword
[thestinger ~]$ type [
[ is a shell builtin
[ is actually built into bash too, along with echo, etc, but it emulates the standalone [
Offline
Pages: 1