mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC1045 (markdown)
19
SC1045.md
Normal file
19
SC1045.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# It's not 'foo &; bar', just 'foo & bar'.
|
||||||
|
|
||||||
|
### Problematic code:
|
||||||
|
|
||||||
|
foo &; bar
|
||||||
|
|
||||||
|
### Correct code:
|
||||||
|
|
||||||
|
foo & bar
|
||||||
|
|
||||||
|
### Rationale:
|
||||||
|
|
||||||
|
Both `&` and `;` terminate the command. You should only use one of them.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Contraindications
|
||||||
|
|
||||||
|
None.
|
Reference in New Issue
Block a user