mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2059 (markdown)
@@ -35,4 +35,11 @@ hexToAscii() { printf "\x$1"; }
|
||||
hexToAscii 21
|
||||
```
|
||||
|
||||
Like all warnings, you can selectively silence this warning with a [directive](Directive).
|
||||
or when you have a pattern in a variable:
|
||||
|
||||
```sh
|
||||
filepattern="file-%d.jpg"
|
||||
printf -v filename "$filepattern" "$number"
|
||||
```
|
||||
|
||||
These are valid use cases with no useful rewrites. Please [[ignore]] the warnings with a [[directive]].
|
||||
|
Reference in New Issue
Block a user