Cotal TypeScript packages
    Preparing search index...

    Function quoteCmdArg

    • Escape one argument for a cmd.exe /c command line so the launched program receives it byte-for-byte. PORTS Rust std append_bat_arg's quote/backslash mechanics; throws (fail closed) for an argument cmd cannot preserve: a newline (\r/\n) or NUL, or a %NAME% cmd would expand. A lone % / undefined %NAME% pass.

      Parameters

      • arg: string
      • env: ProcessEnv

      Returns string