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.