Skip to content

Commit

Permalink
REPL shell mode: construct Cmd directly instead of with @cmd
Browse files Browse the repository at this point in the history
Fixes #20482
  • Loading branch information
StefanKarpinski committed Feb 7, 2017
1 parent dd14457 commit 4fa1678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ function setup_interface(repl::LineEditREPL; hascolor = repl.hascolor, extra_rep
# and pass into Base.repl_cmd for processing (handles `ls` and `cd`
# special)
on_done = respond(repl, julia_prompt) do line
Expr(:call, :(Base.repl_cmd), macroexpand(Expr(:macrocall, Symbol("@cmd"),line)), outstream(repl))
Expr(:call, :(Base.repl_cmd), Cmd(Base.shell_split(line)), outstream(repl))
end)


Expand Down

0 comments on commit 4fa1678

Please sign in to comment.