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.

4
  • 1
    This is not a variable that you could test, but a constant function
    – jarno
    Commented Oct 28, 2019 at 13:11
  • @jarno Is testing the return value of a function different from testing a variable, for the purposes of a script?
    – johnraff
    Commented Nov 5, 2019 at 0:23
  • Well, the question is about variables.
    – jarno
    Commented Nov 5, 2019 at 10:28
  • True, although the usage in a shell script would be the same.
    – johnraff
    Commented Nov 7, 2019 at 6:03