©️ shellQuoting.ts
This commit is contained in:
@@ -126,3 +126,4 @@ const NUL_REDIRECT_REGEX = /(\d?&?>+\s*)[Nn][Uu][Ll](?=\s|$|[|&;)\n])/g
|
|||||||
export function rewriteWindowsNullRedirect(command: string): string {
|
export function rewriteWindowsNullRedirect(command: string): string {
|
||||||
return command.replace(NUL_REDIRECT_REGEX, '$1/dev/null')
|
return command.replace(NUL_REDIRECT_REGEX, '$1/dev/null')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user