Re: A file named "["?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 05 Jun 2012 13:41:59 -0700, jdow wrote:

> On 2012/06/05 13:17, Michael Schwendt wrote:
> > 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:
> 
> The file is still essential. Some script files may not work if it is
> removed because not all scripts on the system use bash.

Of course, but it was claimed that

  | Bash actually runs that command.

to which I replied. The full quote can be found above. And it has been
pointed out early in this thread that it is a command that belongs into
the coreutils package. So, hopefully everything has been cleared up now.

-- 
Michael Schwendt <mschwendt@xxxxxxxxxxxxxxxxx>
Fedora release 17 (Beefy Miracle) - Linux 3.4.0-1.fc17.x86_64
loadavg: 0.35 0.52 0.40
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux