Claude translates Windows-style NUL redirections (e.g., 2>NUL) into /dev/null for cross-platform compatibility. This substitution is now skipped if the command contains <, $, or a backtick — characters that indicate shell expansion or redirection contexts where a static replacement would produce incorrect results.
Evidence
Safety guard (search for "H.includes(\"<\") || H.includes(\"$\") || H.includes(\"\\")"`)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.