mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2229 (markdown)
@@ -37,3 +37,7 @@ read "${foo?}" # No warning
|
|||||||
```
|
```
|
||||||
|
|
||||||
`${foo?}` fails when `foo` is unset, which is fine since `read` would have failed too. The main side effect is an improved runtime error message in that case.
|
`${foo?}` fails when `foo` is unset, which is fine since `read` would have failed too. The main side effect is an improved runtime error message in that case.
|
||||||
|
|
||||||
|
### Related resources:
|
||||||
|
|
||||||
|
* [Bash Pitfalls #12](https://mywiki.wooledge.org/BashPitfalls#pf12): `read $foo`
|
Reference in New Issue
Block a user