From 5ab89e8eab7b8f81a9c7abef8ef3d0f533741522 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 1 Apr 2017 21:29:53 -0700 Subject: [PATCH] Updated SC1003 (markdown) --- SC1003.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SC1003.md b/SC1003.md index e528e3f..f58d14e 100644 --- a/SC1003.md +++ b/SC1003.md @@ -1,4 +1,6 @@ -## Want to escape a single quote? echo 'This is how it'\''s done'. +## Want to escape a single quote? echo 'This is how it'\\''s done'. + +(Note: in v0.4.6, the error message was accidentally missing the backslash) ### Problematic code: @@ -12,6 +14,7 @@ echo 'This is not how it\'s done'. echo 'This is how it'\''s done'. ``` + ### Rationale In POSIX shell, the shell cares about nothing but another single quote to terminate the quoted segment. Not even backslashes are interpreted.