Update sample (was SC1071); add related resources

Parker Mauney
2022-10-30 17:11:25 -04:00
parent 774a6bc951
commit 06346694d6

@@ -3,7 +3,8 @@
### Problematic code: ### Problematic code:
```sh ```sh
#!/bin/zsh # shellcheck shell=zsh
export PAGER=less
``` ```
### Correct code: ### Correct code:
@@ -11,7 +12,8 @@
Any supported shell on the shebang or the `-s` option Any supported shell on the shebang or the `-s` option
```sh ```sh
#!/bin/sh # shellcheck shell=sh
export PAGER=less
``` ```
### Rationale: ### Rationale:
@@ -28,3 +30,10 @@ The supported shell types are listed in the help context, at the moment these ar
* bash * bash
* dash * dash
* ksh * ksh
### Related resources:
- Similar rules
- [[SC1008]] - unrecognized shebang
- [[SC1071]] - unsupported shebang
- [[Documentation for shell directive|Directive#shell]]