mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add missing “of”
@@ -45,7 +45,7 @@ foo=$(mycmd)
|
|||||||
|
|
||||||
### Rationale
|
### Rationale
|
||||||
|
|
||||||
The exit status of the command is overridden by the exit status of the creation the local variable. For example:
|
The exit status of the command is overridden by the exit status of the creation of the local variable. For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ f() { local foo=$(false) || echo foo; }; f
|
$ f() { local foo=$(false) || echo foo; }; f
|
||||||
|
Reference in New Issue
Block a user