From 95e980be0b8f8f02b5a700f1c325ffb056aff014 Mon Sep 17 00:00:00 2001 From: koalaman Date: Tue, 6 Sep 2016 20:10:02 -0700 Subject: [PATCH] Updated SC2059 (markdown) --- SC2059.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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]].