shirt icon indicating copy to clipboard operation
shirt copied to clipboard

cd ~

Open Port3M5 opened this issue 13 years ago • 2 comments

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

Port3M5 avatar Feb 23 '12 14:02 Port3M5

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

jstorimer avatar Feb 23 '12 14:02 jstorimer

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.

jstorimer avatar Feb 25 '12 02:02 jstorimer