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.

2
  • why not integers?
    – phil294
    Commented Jul 24, 2017 at 19:32
  • 8
    @Blauhirn because integers are used differently depending on languages. In some languages 0 coerces to false and 1 to true. In regards to program exit codes (which bash historically uses) it's 0 for positive outcome or true and everything else is negative/error or false.
    – Hugo G
    Commented Nov 3, 2017 at 9:26