You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Linux, using today's master, including a file using tilde as first character is not recognized as a file below the user home directory:
julia>include("~/test.jl")
ERROR: could not open file /home/mjw/src/julia-master/~/test.jl
Stacktrace:
[1] include_from_node1(::String) at ./loading.jl:539
[2] include(::String) at ./sysimg.jl:14
julia>pwd()
"/home/mjw/src/julia-master"
The text was updated successfully, but these errors were encountered:
functioninclude(path::AbstractString)
local result
if INCLUDE_STATE ===1
result = Core.include(path)
elseif INCLUDE_STATE ===2
result =_include(expanduser(path))
elseif INCLUDE_STATE ===3
result =include_from_node1(expanduser(path))
end
result
end
giving
julia>include("~/test.jl")
ERROR: could not open file /home/mjw/test.jl
Stacktrace:
[1] include_from_node1(::String) at ./loading.jl:539
[2] include(::String) at ./sysimg.jl:14
If this is indeed a feasible fix I could make a PR.
Ref #1136. AFAICT this is a shell thing so doing that in shell mode/command literal might make sense but doing it for other low level interfaces doesn't make sense.
On Linux, using today's master, including a file using tilde as first character is not recognized as a file below the user home directory:
The text was updated successfully, but these errors were encountered: