Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 5
    Related: using single or double bracket – bash Commented Aug 27, 2016 at 23:22
  • 80
    Parenthesis and brackets aren't that easy to search for in documentation, and that's all you have if you don't know the names of those features. Commented Aug 29, 2016 at 9:45
  • 2
    Note that Google's Shell Style Guide encourages the use of [[ over [. Commented Nov 23, 2023 at 16:25
  • 1
    Edit: Added spaces to the bracket constructions per this answer which reminds us that bracket is a command in bash that takes parameters. Commented Nov 30, 2023 at 15:39