From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-129652-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RDrbQ-0008Eu-3t
	for garchives@archives.gentoo.org; Wed, 12 Oct 2011 05:43:40 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4A62421C138;
	Wed, 12 Oct 2011 05:43:20 +0000 (UTC)
Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id 6932621C038
	for <gentoo-user@lists.gentoo.org>; Wed, 12 Oct 2011 05:42:01 +0000 (UTC)
Received: by wyf19 with SMTP id 19so365678wyf.40
        for <gentoo-user@lists.gentoo.org>; Tue, 11 Oct 2011 22:42:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        bh=NsVf4rKJTv/O+qJhwpRYbsg0qKNLRicMT1vh/P48iKI=;
        b=OePALmC9p92i18m+d36JXD491zVOHEUeND4tuxh859UorkAt05irjNN2bjIZC7FHDu
         ymaS7m1MziHX7ew1K0jQB1gLSWcYOFCBPmCFmZ2l66YkUcSJj0UwU6ea08fqUAVXOUIQ
         dBCYNvbcuNJKd84gnXLNpjYLNiD3U/9PsArXY=
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.216.133.219 with SMTP id q69mr8422921wei.79.1318398120582;
 Tue, 11 Oct 2011 22:42:00 -0700 (PDT)
Received: by 10.216.234.130 with HTTP; Tue, 11 Oct 2011 22:42:00 -0700 (PDT)
In-Reply-To: <1318397707.15637.3.camel@moriah>
References: <1318397707.15637.3.camel@moriah>
Date: Tue, 11 Oct 2011 22:42:00 -0700
Message-ID: <CADPrc804j2auq1CvD9HbnEErCby6+3_2huaP015nA_aWs87mvQ@mail.gmail.com>
Subject: Re: [gentoo-user] "/usr/bin/[" and coreutils
From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: e11e6d840877210256e5a20d2aa9048d

On Tue, Oct 11, 2011 at 10:35 PM, William Kenworthy <billk@iinet.net.au> wr=
ote:
> I have been checking my system for some deep seated problems and in the
> process, ran across the fact that "equery files sys-apps/coreutils-8.7"
> shows a file included called "/usr/bin/[" - thats right, left square
> bracket!
>
> Is that a bug or if real, what would you use it for? =C2=A0It doesnt seem=
 to
> be on the file system ...
>
> moriah ~ # /usr/bin/[
> /usr/bin/[: missing `]'
> moriah ~ #
>
> doesnt show much!

Relax. It's an alias for "test", so instead of using

if test blah; then
...
fi

in bash, you can use

if [ blah ]; then
...
fi

Just do /usr/bin/[ --help to get an idea. It has been there since I
started using Linux, if I remember correctly, many years ago.

Regards.
--=20
Canek Pel=C3=A1ez Vald=C3=A9s
Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n
Universidad Nacional Aut=C3=B3noma de M=C3=A9xico