mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2055 (markdown)
@@ -39,3 +39,11 @@ This statement is identical to `! [[ $1 = foo || $1 = bar ]]`, which also works
|
|||||||
### Exceptions
|
### Exceptions
|
||||||
|
|
||||||
Rare.
|
Rare.
|
||||||
|
|
||||||
|
* If I want to check that $FOO, $BAR and $COW are all equal:
|
||||||
|
```
|
||||||
|
if [[ $FOO != $BAR || $FOO != $COW ]]
|
||||||
|
then
|
||||||
|
echo "$FOO and $BAR and $COW are not all equal"
|
||||||
|
fi
|
||||||
|
```
|
Reference in New Issue
Block a user