Skip to main content
11 events
when toggle format what by license comment
May 19, 2023 at 16:11 comment added Max Cascone This is obviously (to me) the most clear syntax, but there's gotta be a catch somewhere. I don't think it works with integer values: > bucket_available=0; > if ($bucket_available); then echo hi; fi bash: 0: command not found
Oct 24, 2019 at 6:31 history edited will CC BY-SA 4.0
Return conjunction to English punctuation
Oct 23, 2019 at 12:14 history edited Peter Mortensen CC BY-SA 4.0
Made compliant with the Jon Skeet Decree - <https://twitter.com/PeterMortensen/status/976400000942034944>.
S Feb 2, 2018 at 7:08 history edited will CC BY-SA 3.0
structure edited + removed unnecessary text = overall better for readers now
S Feb 2, 2018 at 7:08 history suggested Vlastimil Burián CC BY-SA 3.0
structure edited + removed unnecessary text = overall better for readers now
Feb 2, 2018 at 6:10 review Suggested edits
S Feb 2, 2018 at 7:08
Nov 6, 2017 at 7:13 comment added will @Blauhirn ... Hi, I based my comments on experiments with GNU Bash on a Linux Mint /Ubuntu PC. You are probably right in theory ()-s are not needed. My only response, is try it out, it seems to depend on Bash version, the actual expression or context and such.
Nov 3, 2017 at 17:00 comment added phil294 @will yes it does. You dont need the ()s.
Mar 6, 2016 at 11:01 comment added will Without parentheses the expression doesn't evaluate.
Mar 4, 2016 at 13:56 comment added dolmen Where you remove the parentheses, this is exactly @miku's original answer at the top.
Sep 22, 2015 at 1:21 history answered will CC BY-SA 3.0