From d9c1064467024012467b70d0ad23c388088ba907 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Tue, 1 Sep 2020 14:20:55 -0700 Subject: [PATCH] Updated SC2035 (markdown) --- SC2035.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SC2035.md b/SC2035.md index 5a12509..c688a2b 100644 --- a/SC2035.md +++ b/SC2035.md @@ -23,4 +23,6 @@ Similarly, `--` by convention indicates the end of options, and nothing after it Note that changing `*` to `./*` in GNU Tar parameters will add `./` prefix to path names in the created archive. This may cause subtle problems (eg. to search for a specific file in archive, the `./` prefix must be specified as well). So using `-- *` is a safer fix for GNU Tar commands. +`echo` and `printf` does not have issues unless the glob is the first word in the command. ShellCheck 0.7.2+ does not warn for these commands. + For more information, see "[Filenames and Pathnames in Shell: How to do it Correctly](http://www.dwheeler.com/essays/filenames-in-shell.html)".