-
-
"How do I assign the result of (x == y) to a variable in bash" is shockingly hard to find a correct answer to, especially because 3+ of the top-ranked google results on stackoverflow are *wrong*
3 replies 0 retweets 6 likesShow this thread -
Replying to @antumbral
How do you define "the result"? Strings or integers?
1 reply 0 retweets 0 likes
Replying to @RichFelker @antumbral
For integers, var=$((x==y)) is best imo.
5:18 PM - 21 Sep 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.