mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Change equality example to use =
instead of -eq
as -eq
is for numbers only
@@ -38,7 +38,7 @@ fi
|
||||
POSIX:
|
||||
|
||||
```sh
|
||||
if [ "$a" -eq "$b" ]; then
|
||||
if [ "$a" = "$b" ]; then
|
||||
echo "equal"
|
||||
fi
|
||||
```
|
||||
|
Reference in New Issue
Block a user