File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1925,15 +1925,15 @@ end
1925
1925
cd (dir) do
1926
1926
withenv (" OLDPWD" => nothing ) do
1927
1927
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)
1930
1930
@test realpath (pwd ()) == realpath (dir)
1931
1931
if ! Sys. iswindows ()
1932
1932
# Delete the working directory and check we can cd out of it
1933
1933
# Cannot delete the working directory on Windows
1934
1934
rm (dir)
1935
1935
@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)
1937
1937
end
1938
1938
end
1939
1939
end
You can’t perform that action at this time.
0 commit comments