From: "Jesús J. Guerrero Botella" <jesus.guerrero.botella@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] "/usr/bin/[" and coreutils
Date: Thu, 13 Oct 2011 15:38:08 +0200 [thread overview]
Message-ID: <CAMix8LENwgyh8RE0k73q0CqtggECWO6073Ge_fHQ_o4DEjR6uA@mail.gmail.com> (raw)
In-Reply-To: <20111012184927.44ed070b@toxic.dbnet>
Yes, it's a different binary, and it's perfectly usual to find it in a
Linux system.
But note that, at least in bash, you rarely will be using /usr/bin/[
unless you reference it using the full path (either in a relative or
absolute way). This is because bash has a builtin that takes over that
binary file. You can check that (or any other command) by using the
"type" instruction (again, this is for bash).
# LC_ALL=C type [
[ is a shell builtin
The same goes for 'test'.
Those binaries are probably there just in case that some init or
system script written for a standard bourne shell (like the busybox
one) needs it. But don't take my word for it. I am not sure right now.
--
Jesús Guerrero Botella
next prev parent reply other threads:[~2011-10-13 13:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-12 5:35 [gentoo-user] "/usr/bin/[" and coreutils William Kenworthy
2011-10-12 5:42 ` Canek Peláez Valdés
2011-10-12 16:49 ` Jonas de Buhr
2011-10-13 13:38 ` Jesús J. Guerrero Botella [this message]
2011-10-13 13:50 ` Alan McKinnon
2011-10-13 13:59 ` Michael Mol
2011-10-13 14:30 ` Alan McKinnon
2011-11-08 1:53 ` Claudio Roberto França Pereira
2011-11-08 6:01 ` Pandu Poluan
2011-11-08 6:03 ` Pandu Poluan
2011-10-12 5:42 ` Manuel McLure
2011-10-12 5:45 ` meino.cramer
2011-10-12 6:04 ` William Kenworthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMix8LENwgyh8RE0k73q0CqtggECWO6073Ge_fHQ_o4DEjR6uA@mail.gmail.com \
--to=jesus.guerrero.botella@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox