Skip to content

Commit acbd9e2

Browse files
roberthoenigstevengj
authored andcommitted
Fix shell mode for Julia 1.0 (JuliaLang#703)
`replace(string::AbstractString, pat, r[, n::Integer=0])` gets removed in Julia 1.0. The new signature is `replace(s::AbstractString, pat=>r; [count::Integer])`.
1 parent 44aa186 commit acbd9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/execute_request.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function execute_request(socket, msg)
161161

162162
# "; ..." cells are interpreted as shell commands for run
163163
code = replace(code, r"^\s*;.*$" =>
164-
m -> string(replace(m, r"^\s*;", "Base.repl_cmd(`"),
164+
m -> string(replace(m, r"^\s*;" => "Base.repl_cmd(`"),
165165
"`, ", stdout_name, ")"))
166166

167167
# a cell beginning with "? ..." is interpreted as a help request

0 commit comments

Comments
 (0)