You are not logged in.

#1 2011-02-01 22:30:14

Painless
Member
Registered: 2006-02-06
Posts: 235

wierd file in coreutils ( [ )

$ ls -l /usr/bin | head
total 282654
-rwxr-xr-x 1 root   root      27648 Jan  4 23:42 [
-rwxr-xr-x 1 root   root         95 Jan  6 11:52 2to3
-r-xr-xr-x 1 root   root         36 Jul 22  2010 7z
-r-xr-xr-x 1 root   root         37 Jul 22  2010 7za
-r-xr-xr-x 1 root   root         37 Jul 22  2010 7zr
-rwxr-xr-x 1 root   root     101844 Nov  8 03:59 a2p
-rwxr-xr-x 1 root   root      18988 Jul 18  2008 a52dec
-rwxr-xr-x 1 root   root       9772 Oct 28 04:56 aafire
-rwxr-xr-x 1 root   root       4252 Oct 28 04:56 aainfo

$ pacman -Qo /usr/bin/\[ 
/usr/bin/[ is owned by coreutils 8.9-1

$ file /usr/bin/\[ 
/usr/bin/[: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.27, stripped

Is this file there for a reason?

Offline

#2 2011-02-01 22:38:11

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: wierd file in coreutils ( [ )

yes, that is how bash evaluates statements like:

if [ "$foo" == "$bar" ]

Offline

#3 2011-02-01 22:40:47

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: wierd file in coreutils ( [ )

Well, not really...   bash has a built-in for that.  But close enough.

Offline

#4 2011-02-02 07:44:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: wierd file in coreutils ( [ )

Everything's OK, it's an app with a weird name.

Offline

Board footer

Powered by FluxBB