mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Updated SC2039 (markdown)
@@ -70,8 +70,8 @@ Bash:
|
||||
POSIX:
|
||||
|
||||
```sh
|
||||
: $((a=c+d))
|
||||
[ $((d)) -ne 0 ] && echo d is true.
|
||||
: $((a=c+d)) # discard the output of the arith expn with `:` command
|
||||
[ $((d)) -ne 0 ] && echo d is true. # manually check non-zero => true
|
||||
```
|
||||
|
||||
### `select` loops
|
||||
|
Reference in New Issue
Block a user