mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
The previous behavior was incorrect because `if` was checking the return status of the `[` command which was never going to be an error. `[` seems to only return an error if no args are provided. This was basically a useless use of `[` anyway since it was just meant as a straight interpretation of command exit, something that `if` can do itself. Compare: ```sh [ ]; echo ?=$? [ /bin/false ]; echo ?=$? if [ /bin/false ]; then echo this is the unintended bug; fi if /bin/false; then echo this will not be printed; fi ``` |
||
|---|---|---|
| .. | ||
| _incr_version | ||
| grimshot | ||
| inactive-windows-transparency.py | ||