From d3dd3f34e6ec1d027e050cf52e51ccbc7737fb5c Mon Sep 17 00:00:00 2001 From: TheArtist Date: Fri, 11 Sep 2015 17:41:23 +0300 Subject: [PATCH] Fixed handling of directories with spaces on Windows --- bin/autojump.bat | 2 +- bin/j.bat | 2 +- bin/jc.bat | 4 ++-- bin/jco.bat | 4 ++-- bin/jo.bat | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/autojump.bat b/bin/autojump.bat index a9e359a..a8cfb8f 100644 --- a/bin/autojump.bat +++ b/bin/autojump.bat @@ -1,2 +1,2 @@ @echo off -python %~dp0\autojump %* \ No newline at end of file +python "%~dp0\autojump" %* diff --git a/bin/j.bat b/bin/j.bat index 77925c9..dbbaec8 100644 --- a/bin/j.bat +++ b/bin/j.bat @@ -17,5 +17,5 @@ if ERRORLEVEL 1 ( echo try `autojump --help` for more information ) ) else ( - python %~dp0\autojump %* + python "%~dp0\autojump" %* ) \ No newline at end of file diff --git a/bin/jc.bat b/bin/jc.bat index f0cc8db..ace52f6 100644 --- a/bin/jc.bat +++ b/bin/jc.bat @@ -2,7 +2,7 @@ echo %*|>nul findstr /rx \-.* if ERRORLEVEL 1 ( - %~dp0\j.bat %cd% %* + "%~dp0\j.bat" "%cd%" %* ) else ( - python %~dp0\autojump %* + python "%~dp0\autojump" %* ) \ No newline at end of file diff --git a/bin/jco.bat b/bin/jco.bat index efd42ff..937c839 100644 --- a/bin/jco.bat +++ b/bin/jco.bat @@ -2,7 +2,7 @@ echo %*|>nul findstr /rx \-.* if ERRORLEVEL 1 ( - %~dp0\jc.bat %cd% %* + "%~dp0\jc.bat" "%cd%" %* ) else ( - python %~dp0\autojump %* + python "%~dp0\autojump" %* ) \ No newline at end of file diff --git a/bin/jo.bat b/bin/jo.bat index 1bb2485..27f5b7b 100644 --- a/bin/jo.bat +++ b/bin/jo.bat @@ -11,5 +11,5 @@ if ERRORLEVEL 1 ( echo try `autojump --help` for more information ) ) else ( - python %~dp0\autojump %* + python "%~dp0\autojump" %* ) \ No newline at end of file