Newbie-ish question about ( [ and [[



I guess I'm a little dense, but I just don't get it.

When, and most importantly why do you use ( [ and [[ in shell scripts?

I'm trying to construct a simple:

if ( some-test-goes-here ) or [ some-test-goes-here ] or maybe even [[
some-test-goes-here ]]
then
blah
fi

construct and I am not sure when or why to use one of the three
different kinds of brackets.

Can someone point me to a resource?

Thanx!

.



Relevant Pages

  • Re: C Pointer problem
    ... brackets in a declaration not part of a definition, ... and empty brackets that _are_ in part of a definition. ... one way and act dense when others define them differently. ... There was an empty and an empty in the code. ...
    (comp.lang.c)
  • Re: C Pointer problem
    ... pete wrote: ... and empty brackets that _are_ in part of a definition. ... Are you being dense? ... C standard terminology when discussing the C standard ...
    (comp.lang.c)
  • Good url/Documents for the Unix shell Scipt Testing
    ... Every one it is a good resource to learn the all quality related ... i have to do testing on Shell Scripts of Unix any docs/url/books pls ...
    (comp.software.testing)
  • Re: Good url/Documents for the Unix shell Scipt Testing
    ... Every one it is a good resource to learn the all quality related ... i have to do testing on Shell Scripts of Unix any docs/url/books pls ...
    (comp.software.testing)
  • Re: C Pointer problem
    ... brackets in a declaration not part of a definition, ... and empty brackets that _are_ in part of a definition. ... Are you being dense? ...
    (comp.lang.c)