From ae87df7a5d4339f5ae52177fefe6c2a21d1b5909 Mon Sep 17 00:00:00 2001 From: Tobias Jensen <29657183+tobias1012@users.noreply.github.com> Date: Sat, 15 Mar 2025 19:22:10 +0100 Subject: [PATCH] Fix Windows paths in perl (#5858) (#5860) Add colon to no escape list, for windows paths --- bin/verilator | 2 +- docs/CONTRIBUTORS | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/verilator b/bin/verilator index 666e0e22c..f0a9af485 100755 --- a/bin/verilator +++ b/bin/verilator @@ -256,7 +256,7 @@ sub sh_escape { # This is similar to quotemeta() but less aggressive. # There's no need to escape hyphens, periods, or forward slashes # for the shell as these have no special meaning to the shell. - $arg =~ s/([^0-9a-zA-Z_\-\+\=\.\/])/\\$1/g; + $arg =~ s/([^0-9a-zA-Z_\-\+\=\.\/:])/\\$1/g; return $arg; } diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index f886a459b..87d0c7cc4 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -249,3 +249,4 @@ Zhou Shen Zixi Li أحمد المحمودي 404allen404 +Tobias Jensen