Skip to content

Commit 1f2cca7

Browse files
committed
fix test of pre_repl_cmd
1 parent 1373a70 commit 1f2cca7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/file.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,15 +1925,15 @@ end
19251925
cd(dir) do
19261926
withenv("OLDPWD" => nothing) do
19271927
io = IOBuffer()
1928-
Base.pre_repl_cmd("cd", Base.shell_parse("cd")[1], io)
1929-
Base.pre_repl_cmd("cd -", Base.shell_parse("cd -")[1], io)
1928+
Base.pre_repl_cmd("cd", eval(Base.shell_parse("cd")[1]), io)
1929+
Base.pre_repl_cmd("cd -", eval(Base.shell_parse("cd -")[1]), io)
19301930
@test realpath(pwd()) == realpath(dir)
19311931
if !Sys.iswindows()
19321932
# Delete the working directory and check we can cd out of it
19331933
# Cannot delete the working directory on Windows
19341934
rm(dir)
19351935
@test_throws Base._UVError("pwd()", Base.UV_ENOENT) pwd()
1936-
Base.pre_repl_cmd("cd \\~", Base.shell_parse("cd \\~")[1], io)
1936+
Base.pre_repl_cmd("cd \\~", eval(Base.shell_parse("cd \\~")[1]), io)
19371937
end
19381938
end
19391939
end

0 commit comments

Comments
 (0)