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*

5
  • That's inaccurate. That's not about old vs new, that's about one implementation vs another. Commented Jul 4, 2014 at 10:00
  • @StéphaneChazelas: Can you give more details? Commented Jul 4, 2014 at 10:01
  • See my answer... Commented Jul 4, 2014 at 10:06
  • @StéphaneChazelas: Great answer! But I think the old vs new is right with bash, I added it to my answer. Commented Jul 4, 2014 at 10:09
  • @StéphaneChazelas It's both: bash doesn't recognize the =~ operator with the [ builtin, only with the [[ … ]] syntax. Commented Jul 5, 2014 at 11:18