Skip to content

Commit 11093b7

Browse files
author
José Valim
committed
Merge pull request #1517 from ToJans/master
Fixed problem with elixir.bat removing exclamation marks from command line
2 parents 55623c1 + 6d57915 commit 11093b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/elixir.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@echo off
2-
SETLOCAL enabledelayedexpansion
32
set argc=0
43
for %%x in (%*) do set /A argc+=1
54
if %argc%== 0 (
@@ -117,9 +116,11 @@ for /f "usebackq" %%m in (`echo %par%^|findstr \--remsh`) do (
117116
rem ******* assume all pre-params are parsed ********************
118117
:expand_erl_libs
119118
rem ******* expand all ebin paths as Windows does not support the ..\*\ebin wildcard ********************
119+
SETLOCAL enabledelayedexpansion
120120
set ext_libs=
121121
for /d %%d in ("%originPath%..\lib\*.") do (
122122
set ext_libs=!ext_libs! -pa "%%~fd\ebin"
123123
)
124+
SETLOCAL disabledelayedexpansion
124125
:run
125126
erl %ext_libs% -noshell %ELIXIR_ERL_OPTS% %parsErlang% -s elixir start_cli %beforeExtra% -extra %*

0 commit comments

Comments
 (0)