Commit 333896b
committed
Treat false-seeming HIDE_* env var values as false
This changes how HIDE_WINDOWS_KNOWN_ERRORS and
HIDE_WINDOWS_FREEZE_ERRORS environment variables, if present, are
interpreted, so that values that strongly seem intuitivley to
represent falsehood now do.
Before, only the empty string was treated as false. Now:
- "0", "false", "no", and their case variants, as well as the empty
string, are treated as false.
- The presence of leading and trailing whitespace in the value now
longer changes the truth value it represents. For example,
all-whitespace (e.g., a space) is treated as false.
- Values other than the above false values, and the recognized true
values "1", "true", "yes", and their variants, are still treated
as true, but issue a warning about how they are unrecognied.1 parent eb51277 commit 333896b
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
532 | 536 | | |
533 | 537 | | |
534 | 538 | | |
535 | 539 | | |
536 | 540 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| |||
0 commit comments