From 12ea2191188764656080dfd2b3305495668c5fe1 Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Fri, 10 May 2024 12:54:09 +0200 Subject: [PATCH] Extend the #4861 test to include a quoted dir --- tests/reftests/env.win32.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/reftests/env.win32.test b/tests/reftests/env.win32.test index 5ee2097cf2b..b5c1258aa19 100644 --- a/tests/reftests/env.win32.test +++ b/tests/reftests/env.win32.test @@ -6,7 +6,7 @@ N0REP0 opam-version: "2.0" setenv: [ [ PATH += "XXX:\\" ] - [ PATH += "C:\\Devel\\bin1;C:\\Devel\\bin2;C:\\Devel\\bin3;C:\\Devel\\bin4;ZZZ:\\" ] + [ PATH += "C:\\Devel\\bin1;C:\\Devel\\bin2;\"C:\\Devel\\bin3;\";C:\\Devel\\bin4;ZZZ:\\" ] ] x-env-path-rewrite: [ [ PATH false ] @@ -24,7 +24,7 @@ Done. ### : MSVC) ### opam env --shell=cmd | grep "PATH" | 'XXX:.*' -> '' | 'set "P' -> 'set P' set "MANPATH=:"${BASEDIR}/OPAM/rewriting/man"" -set PATH=${BASEDIR}/OPAM/rewriting/bin;C:\Devel\bin1;C:\Devel\bin2;C:\Devel\bin3;C:\Devel\bin4;ZZZ:\; +set PATH=${BASEDIR}/OPAM/rewriting/bin;C:\Devel\bin1;C:\Devel\bin2;"C:\Devel\bin3;";C:\Devel\bin4;ZZZ:\; ### opam exec -- opam env --shell=cmd --revert | grep 'ZZZ:' | 'ZZZ:\\.*' -> 'ZZZ:\' | 'set "P' -> 'set P' ### : Test for #5838 ### opam env | grep MANPATH