From e7868d969707becff7f3658f83c5dc107e7a948c Mon Sep 17 00:00:00 2001 From: Bharatvaj Date: Wed, 8 Jun 2022 17:25:41 +0530 Subject: [PATCH] Handle '/' in j.bat Fixes #125 --- integrations/j.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/j.bat b/integrations/j.bat index 7134f0c..e91ecfb 100644 --- a/integrations/j.bat +++ b/integrations/j.bat @@ -6,10 +6,10 @@ if ERRORLEVEL 1 ( for /f "delims=" %%i in ('"%~dp0\autojump" %*') do set new_path=%%i if exist !new_path!\nul ( echo !new_path! - pushd !new_path! + pushd "!new_path!" REM endlocal is necessary so that we can change directory for outside of this script REM but will automatically popd. We mush pushd twice to work around this. - pushd !new_path! + pushd "!new_path!" endlocal popd ) else (