MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / rewriteWindowsNullRedirect

Function rewriteWindowsNullRedirect

src/utils/bash/shellQuoting.ts:126–128  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

124const NUL_REDIRECT_REGEX = /(\d?&?>+\s*)[Nn][Uu][Ll](?=\s|$|[|&;)\n])/g
125
126export function rewriteWindowsNullRedirect(command: string): string {
127 return command.replace(NUL_REDIRECT_REGEX, '$1/dev/null')
128}

Callers 1

buildExecCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected