File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ SELF=$(readlink_f "$0")
218
218
SCRIPT_PATH=$( dirname " $SELF " )
219
219
220
220
if [ " $OSTYPE " = " cygwin" ]; then SCRIPT_PATH=$( cygpath -m " $SCRIPT_PATH " ) ; fi
221
- if [ " $MODE " != " iex" ]; then ERL=" -noshell - s elixir start_cli $ERL " ; fi
221
+ if [ " $MODE " != " iex" ]; then ERL=" -s elixir start_cli $ERL " ; fi
222
222
223
223
if [ " $OS " != " Windows_NT" ] && [ -z " $NO_COLOR " ]; then
224
224
if test -t 1 -a -t 2; then ERL=" -elixir ansi_enabled true $ERL " ; fi
229
229
ERTS_BIN=
230
230
ERTS_BIN=" $ERTS_BIN "
231
231
232
- set -- " $ERTS_BIN$ERL_EXEC " -elixir_root " $SCRIPT_PATH " /../lib -pa " $SCRIPT_PATH " /../lib/elixir/ebin $ELIXIR_ERL_OPTIONS $ERL " $@ "
232
+ set -- " $ERTS_BIN$ERL_EXEC " -noshell - elixir_root " $SCRIPT_PATH " /../lib -pa " $SCRIPT_PATH " /../lib/elixir/ebin $ELIXIR_ERL_OPTIONS $ERL " $@ "
233
233
234
234
if [ -n " $RUN_ERL_PIPE " ]; then
235
235
ESCAPED=" "
Original file line number Diff line number Diff line change @@ -162,10 +162,10 @@ if %errorlevel% == 0 (
162
162
set beforeExtra = -elixir ansi_enabled true !beforeExtra!
163
163
)
164
164
if not defined useIEx (
165
- set beforeExtra = -noshell - s elixir start_cli !beforeExtra!
165
+ set beforeExtra = -s elixir start_cli !beforeExtra!
166
166
)
167
167
168
- set beforeExtra = -elixir_root " !SCRIPT_PATH! ..\lib" -pa " !SCRIPT_PATH! ..\lib\elixir\ebin" !beforeExtra!
168
+ set beforeExtra = -noshell - elixir_root " !SCRIPT_PATH! ..\lib" -pa " !SCRIPT_PATH! ..\lib\elixir\ebin" !beforeExtra!
169
169
170
170
if defined ELIXIR_CLI_DRY_RUN (
171
171
if defined useWerl (
Original file line number Diff line number Diff line change @@ -17,10 +17,17 @@ defmodule IEx.CLI do
17
17
18
18
:user . start ( )
19
19
20
- # IEx.Broker is capable of considering all groups under user_drv but
21
- # when we use :user.start(), we need to explicitly register it instead.
22
- # If we don't register, pry doesn't work.
23
- :iex . start ( [ register: true ] ++ options ( ) , { :elixir , :start_cli , [ ] } )
20
+ spawn ( fn ->
21
+ :application . ensure_all_started ( :iex )
22
+
23
+ case :init . notify_when_started ( self ( ) ) do
24
+ :started -> :ok
25
+ _ -> :init . wait_until_started ( )
26
+ end
27
+
28
+ :ok = :io . setopts ( binary: true , encoding: :unicode )
29
+ IEx.Server . run_from_shell ( [ register: true ] ++ options ( ) , { :elixir , :start_cli , [ ] } )
30
+ end )
24
31
end
25
32
end
26
33
You can’t perform that action at this time.
0 commit comments