diff --git a/SC1012.md b/SC1012.md index 618ae45..2eaaa04 100644 --- a/SC1012.md +++ b/SC1012.md @@ -29,6 +29,14 @@ line="foo bar" ``` +or + +```sh +# Linefeed using ANSI-C quoting +line=$'foo\nbar' +``` + + ### Rationale: ShellCheck has found a `\t`, `\n` or `\r` in a context where they just become regular letters `t`, `n` or `r`. Most likely, it was intended as a tab, linefeed or carriage return.