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

cd ~ #1

Open
Port3M5 opened this issue Feb 23, 2012 · 2 comments
Open

cd ~ #1

Port3M5 opened this issue Feb 23, 2012 · 2 comments

Comments

@Port3M5
Copy link

Port3M5 commented Feb 23, 2012

Using cd ~ shirt crashes with No such file or directory - ~ (Errno::ENOENT)

@jstorimer
Copy link
Owner

Good one. I'll make sure that's fixed in due time :)

@jstorimer
Copy link
Owner

This will be covered in a future article on 'inline evaluation'. It's possible to use ~ for any command, not just cd, so it needs to replaced with ENV['HOME'] for any command (ls ~/projects). There are things of a similar nature like !!, as well as code in backticks that needs to be replaced inline.

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

2 participants