mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC1084 (markdown)
19
SC1084.md
Normal file
19
SC1084.md
Normal file
@@ -0,0 +1,19 @@
|
||||
## Use #!, not !#, for the shebang.
|
||||
|
||||
### Problematic code:
|
||||
|
||||
!#/bin/sh
|
||||
echo "Hello World"
|
||||
|
||||
### Correct code:
|
||||
|
||||
#!/bin/sh
|
||||
echo "Hello World"
|
||||
|
||||
### Rationale:
|
||||
|
||||
The shebang has been accidentally swapped. The `#` should come first: `#!`, not `!#`.
|
||||
|
||||
### Contraindications
|
||||
|
||||
None.
|
Reference in New Issue
Block a user