mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC1103 (markdown)
30
SC1103.md
Normal file
30
SC1103.md
Normal file
@@ -0,0 +1,30 @@
|
||||
## This shell type is unknown. Use e.g. sh or bash.
|
||||
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
#!/bin/zsh
|
||||
```
|
||||
|
||||
### Correct code:
|
||||
|
||||
Any supported shell on the shebang or the `-s` option
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
```
|
||||
|
||||
### Rationale:
|
||||
|
||||
Shellcheck only supports a specific range of shell dialects, there are many more applications providing shell like experiences and some of them look and feel like POSIX shell or bash but does not support the same commands.
|
||||
|
||||
One notable unsupported shell type is zsh, see issue [#809](https://github.com/koalaman/shellcheck/issues/809) about supporting zsh - some efforts have been done in the past.
|
||||
|
||||
### Exceptions:
|
||||
|
||||
The supported shell types are listed in the help context, at the moment these are
|
||||
|
||||
* sh
|
||||
* bash
|
||||
* dash
|
||||
* ksh
|
Reference in New Issue
Block a user