diff --git a/SC2059.md b/SC2059.md index 185e9ec..1a1a468 100644 --- a/SC2059.md +++ b/SC2059.md @@ -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]].