realpath

    realpath command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.9
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    187

    #realpath

    Resolve and normalize paths through MoonX.

    Readlink also uses this command's physical and lexical resolver for its canonicalization modes.

    #Usage

    moonx cli/realpath existing.txt moonx cli/realpath -m missing/path moonx cli/realpath --relative-to=. existing.txt

    Resolve path components and symbolic links. Select existing-only, missing-component or lexical normalization behavior explicitly.

    #Common options

    OptionDescription
    -e, --canonicalize-existingrequire every component to exist
    -m, --canonicalize-missingallow missing or non-directory components
    -s, --stripdo not expand symbolic links
    -z, --zeroterminate output with NUL
    --relative-to VALUEprint relative to DIR
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Physical resolution requires readable link targets. Lexical mode does not establish physical containment.

    Build from source with the MoonBit 1.0 RC1 toolchain.

    See the compatibility guide for the supported profile.

    Source Files