expr

    expr command for MoonX.

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

    #expr

    Evaluate integer, string and basic-regex expressions through MoonX.

    #Usage

    moonx cli/expr 7 + 5 moonx cli/expr abc : 'a\(.*\)'

    Pass operators and operands as separate arguments. Output the result; status distinguishes a nonzero/nonempty result, a zero/empty result and errors.

    #Common options

    OptionDescription
    --helpShow help.
    --versionShow the version.

    #Notes

    • Uses the documented C-byte expression grammar, not a general-purpose language. Quote operators that the invoking shell would interpret.

    See the compatibility guide for the supported profile.

    Source Files