mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 13:35:26 +02:00
![]() Using `{{command}} && {{command1}} || {{command2}}` does not actually work like if, and it's misleading to teach that to users. The difference is that in the above construct, command2 gets executed if command1 fails, which does not happen in a real if as in `if {{command}}; then {{command1}}; else {{command2}}; fi` |
||
---|---|---|
.. | ||
common | ||
linux | ||
osx | ||
sunos | ||
windows |