sh

    sh command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.11
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    242

    #sh

    Run the supported shell language through MoonX.

    #Usage

    moonx cli/sh -c 'printf "%s\n" hello' moonx cli/sh script.sh

    Execute a command string, a script file or stdin. Supports variables, redirections, pipelines, control flow, arithmetic and builtins in the documented profile.

    #Common options

    OptionDescription
    -c VALUEExecute source text.
    -sRead commands from stdin.
    -iEnable explicit interactive prompts and ENV startup.
    --helpShow help.
    --versionShow the version.

    #Notes

    • This is not a complete POSIX shell or Bash implementation. Descriptor, terminal, permission and file-identity operations have explicit limits.
    • External commands require launcher permission; shell evaluation itself uses the MoonBit implementation.

    See the compatibility guide for the supported profile.

    Source Files