xpipe/lang/base/texts/scriptCompatibility_en.md

14 lines
573 B
Markdown
Raw Normal View History

2023-11-04 18:36:47 +13:00
## Script compatibility
The shell type controls where this script can be run.
Aside from an exact match, i.e. running a `zsh` script in `zsh`, XPipe will also include wider compatibility checking.
### Posix Shells
Any script declared as a `sh` script is able to run in any posix-related shell environment such as `bash` or `zsh`.
If you intend to run a basic script on many different systems, then using only `sh` syntax scripts is the best solution for that.
### PowerShell
2024-04-14 04:23:09 +12:00
Scripts declared as normal `powershell` scripts are also able to run in `pwsh` environments.