From 4885c337ec1c824b7e2fa92e2940c3034fc16d3d Mon Sep 17 00:00:00 2001 From: CharlesHsu Date: Fri, 14 Nov 2025 23:31:04 +0800 Subject: [PATCH] avoid CMD window-title quote rule breaking for /f subprocess --- isaaclab.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isaaclab.bat b/isaaclab.bat index f47364e00b3..27f1fc05323 100644 --- a/isaaclab.bat +++ b/isaaclab.bat @@ -53,7 +53,7 @@ if errorlevel 1 ( echo [INFO] Installing PyTorch !TORCH_VER! with CUDA !CUDA_TAG!... call "!python_exe!" -m pip install "torch==!TORCH_VER!" "torchvision==!TV_VER!" --index-url "!PYTORCH_INDEX!" ) else ( - for /f "tokens=2" %%V in ('"!python_exe!" -m pip show torch ^| findstr /B /C:"Version:"') do set "TORCH_CUR=%%V" + for /f "tokens=2" %%V in ('!python_exe! -m pip show torch ^| findstr /B /C:"Version:"') do set "TORCH_CUR=%%V" echo [INFO] Found PyTorch version !TORCH_CUR!. if /I not "!TORCH_CUR!"=="!TORCH_VER!+!CUDA_TAG!" ( echo [INFO] Replacing PyTorch !TORCH_CUR! -> !TORCH_VER!+!CUDA_TAG!...