From bcc90c51c48aa0d184d70f5833b1b33ab1f1e02a Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 25 Feb 2017 15:22:18 -0800 Subject: [PATCH] Created SC1112 (markdown) --- SC1112.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 SC1112.md diff --git a/SC1112.md b/SC1112.md new file mode 100644 index 0000000..f21eddc --- /dev/null +++ b/SC1112.md @@ -0,0 +1,29 @@ +## This is a unicode quote. Delete and retype it (or quote to make literal). + +### Problematic code: + +```sh +echo 'hello world’ +``` + +### Correct code: + +```sh +echo 'hello world' +``` + +### Rationale: + +Some software, like OS X, Word and WordPress, may automatically replace your regular quotes with slanted Unicode quotes. The shell does not recognize these quotes and will not respect them. + +In this case, you have slanted single quotes in a single quoted string. Try deleting and retyping them, and/or disable “smart quotes” in your editor or OS. + +### Exceptions + +If you want to use literal slanted single quotes for typographic reasons, you can put them in double quotes to make ShellCheck ignore them: + +```sh +printf "Warning: ‘wakeonlan’ is not installed.\\n" +``` + +You can also just [[ignore]] this warning. \ No newline at end of file