Skip to content

Commit

Permalink
Merge pull request #2819 from choptastic/shell-fix-26
Browse files Browse the repository at this point in the history
Fix for `rebar3 shell` in Erlang 26 when ShellArgs==undefined
  • Loading branch information
ferd authored Aug 13, 2023
2 parents 3f82933 + 6e822c4 commit 6d026e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/rebar/src/rebar_prv_shell.erl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ format_error(Reason) ->
shell(State) ->
setup_name(State),
setup_paths(State),
ShellArgs = debug_get_value(shell_args, rebar_state:get(State, shell, []), undefined,
ShellArgs = debug_get_value(shell_args, rebar_state:get(State, shell, []), [],
"Found shell args from command line option or plugin."),
setup_shell(ShellArgs),
maybe_run_script(State),
Expand Down Expand Up @@ -226,7 +226,7 @@ setup_new_shell(ShellArgs) ->
_ = supervisor:terminate_child(kernel_sup, user),
%% start a new shell (this also starts a new user under the correct group)
case ShellArgs of
undefined ->
[] ->
_ = user_drv:start();
_ ->
_ = user_drv:start(ShellArgs)
Expand Down

0 comments on commit 6d026e4

Please sign in to comment.