Skip to content

include doesn't recognize '~' as home directory #21337

Closed
@m-j-w

Description

@m-j-w

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    won't changeIndicates that work won't continue on an issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions