Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand ~ in shell mode #22181

Closed
malmaud opened this issue Jun 1, 2017 · 4 comments
Closed

expand ~ in shell mode #22181

malmaud opened this issue Jun 1, 2017 · 4 comments

Comments

@malmaud
Copy link
Contributor

malmaud commented Jun 1, 2017

shell> cd ~/Google\ Drive/
ERROR: chdir ~/Google Drive/: no such file or directory (ENOENT)

yet

cd(joinpath(homedir(), "Google Drive"))

works.

@ararslan
Copy link
Member

ararslan commented Jun 2, 2017

It appears that the tilde isn't getting expanded:

shell> cd ~/test\ folder
ERROR: chdir ~/test folder: no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error at ./libuv.jl:68 [inlined]
 [2] cd(::SubString{String}) at ./file.jl:50
 [3] repl_cmd(::Cmd, ::Base.Terminals.TTYTerminal) at ./client.jl:105

shell> cd /Users/alex/test\ folder
/Users/alex/test folder

@ararslan
Copy link
Member

ararslan commented Jun 2, 2017

Related: #3157, #1136

@yuyichao yuyichao changed the title Can't cd into multi-word directory in shell mode expand ~ in shell mode Jun 2, 2017
@malmaud
Copy link
Contributor Author

malmaud commented Jun 2, 2017

I know tilde expansion didnt work in Base.cd, but it used to work from shell mode. So this is a regression afaik.

@andreasnoack
Copy link
Member

This also fails in Julia 0.3. The issue is the space in the directory name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants