Skip to main content
4 events
when toggle format what by license comment
Nov 29, 2021 at 15:28 comment added Stéphane Chazelas Not sure what you mean there. && / || are not bashisms. They were already present in the Bourne shell in the 70s. They're also present in csh which make them more portable than if whose syntax is different between Bourne-like shells and csh. Using them in place of if constructs is often considered bad practice though. Note that [ -z "$file" ] would also return true if the script is called with -i '' (likely not a problem in practice)
Nov 12, 2020 at 9:32 comment added 220284 That's helpful too. Thanks!
Nov 11, 2020 at 1:33 review First posts
Nov 11, 2020 at 12:21
Nov 11, 2020 at 1:27 history answered Jayr Magave CC BY-SA 4.0