in [[ there is generally no need for quoting, except the right hand side of an = comparison
- 0 Posts
- 8 Comments
Joined 2 years ago
Cake day: June 17th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
in
[[, empty strings are falsy, so this also works:[[ ! $VARIABLE1 && ! $VARIABLE2 ]] && echo "OK"
The variables need a dollar sign:
$VARIABLE1help testshows what-nand-zdo.
Never use
a && b || c. It is not the same asif a; then b; else c; fi: whenasucceeds butbfails, it will run bothbandc.I would not bother with
[unless you absolutely need compatibility with non-bash shells.
Farnsworth@lemmy.worldto
Linux@lemmy.ml•Everytime I try to start something with Linux I fail.
51·3 months agoTry opening a terminal an typing
echo 'Hello World!'My two cents: You can forget about Linux for a while. Using a terminal is more important. Here’s a classic guide: https://mywiki.wooledge.org/BashGuide
Cool operating system bro. Does it run KDE?
The tukaani github repos are gone, is there a mirror somewhere?
Bookmarked 😜 Mind adding a dark mode?