A file named "["?

Michael Schwendt mschwendt at gmail.com
Tue Jun 5 20:17:47 UTC 2012


On Tue, 05 Jun 2012 12:35:34 -0700, jdow wrote:

> On 2012/06/05 11:55, Michael Schwendt wrote:
> > On Tue, 5 Jun 2012 14:40:23 -0400, Alex wrote:
> >
> >> It's used in shell scripts, such as an "if" statement, such as "if [
> >> $? -eq 0 ]". Bash actually runs that command.
> >
> > Not Bash.
> >
> > $ type [
> > [ is a shell builtin
> >
> > Also see "man [".
> >
> 
> $ type /usr/bin/[
> /usr/bin/[ is /usr/bin/[

Of course. What are you trying to prove?

Bash doesn't run that command. "man test" explains it, too:

| NOTE: your shell may have its own version of test and/or [, which  usu‐
| ally  supersedes  the  version  described  here.   Please refer to your
| shell's documentation for details about the options it supports.

-- 
Fedora release 17 (Beefy Miracle) - Linux 3.3.7-1.fc17.x86_64
loadavg: 1.78 1.58 1.44


More information about the users mailing list