Sign in

    which

    which command for MoonX.

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

    Dependencies

    #which

    Version 0.1.2. See the support record for release evidence.

    Find executable files using the caller's PATH:

    moonx cli/which sh moonx cli/which -a sh moonx cli/which -s ./tool

    -a/--all prints all matching executable regular files. Without it, only the first match is printed. -s/--silent suppresses both normal and missing-command output; status is 1 if any operand is missing. Path operands are checked directly. POSIX requires executable access and treats backslash as a filename character. Empty PATH entries mean the current directory.

    Windows uses semicolon-separated PATH and PATHEXT (default .COM;.EXE;.BAT;.CMD) to resolve executable suffixes. Files are inspected, never launched during lookup. Shell aliases and functions are outside this command's scope. --help and --version are available.

    #Standalone metadata

    Standalone --version prints exactly which 0.1.2 followed by one newline. Standalone --help starts with Usage: which, lists both metadata options, and ends with a newline. Both write to stdout, leave stdin unread, and exit with status 0. Exact-version publication and verification remain recorded separately in the support record.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io