From 8acf933c02711f508323244aa898687658989bc1 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 29 Mar 2014 10:08:42 -0700 Subject: [PATCH] Created SC1015 (markdown) --- SC1015.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 SC1015.md diff --git a/SC1015.md b/SC1015.md new file mode 100644 index 0000000..ccd2de7 --- /dev/null +++ b/SC1015.md @@ -0,0 +1,19 @@ +## This is a unicode double quote. Delete and retype it. + +### Problematic code: + + echo “hello world” + +### Correct code: + + echo "hello world" + +### Rationale: + +Blog software and word processors frequently replaces ASCII quotes `""` with fancy Unicode quotes, `“”`. To bash, Unicode quotes are considered regular literals and not quotes at all. + +Simply delete them and retype them in your editor. + +### Contraindications + +If you really want literal Unicode double quotes, you can put them in single quotes (or unicode single quotes in double quotes) to make shellcheck ignore them. \ No newline at end of file