mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2291 (markdown)
@@ -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:
|
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
|
$ echo Hello World
|
||||||
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:
|
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"
|
$ echo "Hello World"
|
||||||
Hello World
|
Hello World
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user