mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2055 (markdown)
10
SC2055.md
10
SC2055.md
@@ -38,4 +38,12 @@ This statement is identical to `! [[ $1 = foo || $1 = bar ]]`, which also works
|
||||
|
||||
### 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