diff --git a/SC2291.md b/SC2291.md index 8edc52e..48ef677 100644 --- a/SC2291.md +++ b/SC2291.md @@ -16,14 +16,14 @@ echo "Hello World" ShellCheck found multiple unquoted spaces between words passed to `echo`. Due to the way arguments are interpreted and passed in the shell, these will collapse into a single space: -``` +```console $ echo Hello World Hello World ``` If you want to output multiple spaces, such as when creating a notice or banner, make sure the spaces are quoted, e.g. by adding (or extending) double quotes to include them: -``` +```console $ echo "Hello World" Hello World ```