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
  • Thanks, Dennis! I added to the original post a new question about how to combine expressions in if cluase. Commented Jan 31, 2010 at 16:45
  • 13
    "some people like..." : this one is more portable across versions and shells. Commented Oct 17, 2011 at 5:44
  • With case statements you can leave away the quotes around the variable since no word splitting occurs. I know it's pointless and inconsistent but I do like to leave away the quotes there to make it locally more visually appealing. Commented Nov 6, 2014 at 15:12
  • And in my case, I had to leave away the quotes before ): "/*") did not work, /*) did. (I'm looking for strings starting with /, i.e., absolute paths) Commented Feb 18, 2017 at 20:43