mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1001 (markdown)
14
SC1001.md
14
SC1001.md
@@ -4,23 +4,13 @@
|
||||
|
||||
```sh
|
||||
echo Yay \o/
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```sh
|
||||
\git status
|
||||
\git status # Non-POSIX way to suppress aliases
|
||||
```
|
||||
|
||||
### Correct code:
|
||||
|
||||
```sh
|
||||
echo 'Yay \o/'
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```sh
|
||||
command git status
|
||||
```
|
||||
|
||||
@@ -34,4 +24,4 @@ If the purpose is to run an external command rather than an alias, prefer `comma
|
||||
|
||||
### Exceptions
|
||||
|
||||
If you have an alias and a function (as opposed to an external command), you can either ignore this message or use `"name"` instead of `\name` to quiet ShellCheck.
|
||||
If you have an alias and a function (as opposed to an external command), you can either ignore this message or use `"name"` instead of `\name` to quiet ShellCheck.
|
Reference in New Issue
Block a user