Timeline for How can I declare and use Boolean variables in a shell script?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 23, 2019 at 12:10 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading [<https://en.wiktionary.org/wiki/Boolean#Noun>].
|
Feb 2, 2018 at 6:33 | review | Suggested edits | |||
Feb 2, 2018 at 8:37 | |||||
Nov 3, 2017 at 9:26 | comment | added | Hugo G |
@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 .
|
|
Jul 24, 2017 at 19:32 | comment | added | phil294 | why not integers? | |
Sep 8, 2014 at 16:55 | history | answered | Pyrolistical | CC BY-SA 3.0 |