From 2dba8da1e40e1894a1cd656a8ff1a6d1828f4d83 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 14 Jan 2017 12:27:18 -0800 Subject: [PATCH] Created SC1109 (markdown) --- SC1109.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 SC1109.md diff --git a/SC1109.md b/SC1109.md new file mode 100644 index 0000000..3cd9d27 --- /dev/null +++ b/SC1109.md @@ -0,0 +1,25 @@ +## This is an unquoted HTML entity. Replace with corresponding character. + +### Problematic code: + +```sh +foo && bar +``` + +### Correct code: + +```sh +foo && bar +``` + +### Rationale: + +There is an unquoted HTML entity, such as `&`, `>` or `<` (instead of `&`, `>` and `<`) in your code. This usually happens when copy-pasting from a web site that has mismanaged its code formatting. + +You should go through the entire script and replace HTML entities with their corresponding characters. + +Don't rely on ShellCheck to detect all of them. ShellCheck only warns about certain cases in certain contexts, while this issue tends to affect the entire script. + +### Exceptions: + +If you want to run a command called `amp` after backgrounding another command, add a space: `foo & amp;`. \ No newline at end of file