mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Fix anchor link
@@ -27,7 +27,7 @@
|
|||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
Bats uses `set -e` and `trap ERR` to catch test failures as early as possible.
|
Bats uses `set -e` and `trap ERR` to catch test failures as early as possible.
|
||||||
Although the return code of a `!` negated command is inverted, they will never trigger `errexit`, due to a bash design decision (see [Related Resources](#Related resources))).
|
Although the return code of a `!` negated command is inverted, they will never trigger `errexit`, due to a bash design decision (see [Related Resources](#related-resources)).
|
||||||
This means that tests which use `!` can never fail.
|
This means that tests which use `!` can never fail.
|
||||||
|
|
||||||
Starting with bats 1.5.0 you can use `!` inside `run`.
|
Starting with bats 1.5.0 you can use `!` inside `run`.
|
||||||
|
Reference in New Issue
Block a user