Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
124
const
NUL_REDIRECT_REGEX = /(\d?&?>+\s*)[Nn][Uu][Ll](?=\s|$|[|&;)\n])/g
125
126
export
function
rewriteWindowsNullRedirect(command: string): string {
127
return
command.replace(NUL_REDIRECT_REGEX,
'$1/dev/null'
)
128
}
Callers
1
buildExecCommand
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected