diff --git a/base/loading.jl b/base/loading.jl index 2815195363b8a..cb4bdf518b816 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -3548,10 +3548,10 @@ julia> cd("/home/JuliaUser") # working directory julia> # create script at /home/JuliaUser/Projects open("/home/JuliaUser/Projects/test.jl","w") do io - print(io, """ + print(io, \"\"\" println("@__DIR__ = ", @__DIR__) println("pwd() = ", pwd()) - """) + \"\"\") end julia> # outputs script directory and current working directory