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.

5
  • 4
    But OP uses double brackets, so no word splitting takes place. Commented Feb 15, 2019 at 16:22
  • 7
    Yes, this isn't really relevant to bash's [[ ]] construct. Commented Feb 15, 2019 at 16:34
  • 1
    Eh? [ $value1 -eq $value2 ] with an empty value1 would be '[' -eq 3 ']' with no '' on the left-hand side. Commented Feb 16, 2019 at 19:19
  • I was surprised too, but there's the evidence. Commented Feb 16, 2019 at 20:59
  • 2
    This answer does not directly relate to the question. I'm surprised it was accepted. Setting as community wiki. Commented Feb 20, 2019 at 20:23