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
|
```sh
|
||||||
echo Yay \o/
|
echo Yay \o/
|
||||||
```
|
\git status # Non-POSIX way to suppress aliases
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
```sh
|
|
||||||
\git status
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Correct code:
|
### Correct code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
echo 'Yay \o/'
|
echo 'Yay \o/'
|
||||||
```
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
```sh
|
|
||||||
command git status
|
command git status
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -34,4 +24,4 @@ If the purpose is to run an external command rather than an alias, prefer `comma
|
|||||||
|
|
||||||
### Exceptions
|
### 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