env

    env command for MoonX.

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

    #env

    Print or modify the environment for a child command through MoonX.

    #Usage

    moonx cli/env moonx cli/env DEMO=value printenv DEMO moonx cli/env -u DEMO printenv DEMO

    Without a command, print the resulting environment. Otherwise apply assignments/removals and launch the command.

    #Common options

    OptionDescription
    -i, --ignore-environmentStart with an empty environment; bare - is equivalent.
    -u VALUE, --unset VALUERemove a variable.
    -0, --nullSeparate printed entries with NUL.
    -C VALUE, --chdir VALUESet the child working directory.
    -S VALUE, --split-string VALUESplit quotes, escapes and original-environment substitutions.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • -S splits its argument using the supported quoting and expansion rules; it does not invoke a host shell. Child execution requires launcher permission.

    See the compatibility guide for the supported profile.

    Source Files