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

Support cp something ~/.bin #44

Closed
Tracked by #35
certik opened this issue Sep 6, 2024 · 4 comments
Closed
Tracked by #35

Support cp something ~/.bin #44

certik opened this issue Sep 6, 2024 · 4 comments

Comments

@certik
Copy link
Collaborator

certik commented Sep 6, 2024

~/repos/shell$ cp target/release/shell.exe ~/bin
cp: could not copy target/release/shell.exe to ~/bin: The system cannot find the path specified. (os error 3)

The ~/bin does not work.

@certik
Copy link
Collaborator Author

certik commented Sep 6, 2024

Same with ls, rm and also launching programs using ~/bin/shell.exe

@wolfv
Copy link
Member

wolfv commented Sep 6, 2024

I think this relates to the idea of pre-processing the ~ string and expanding it to $HOME.

@certik
Copy link
Collaborator Author

certik commented Sep 7, 2024

Note that there is no $HOME on Windows, but shell already knows how to get it via deno's dirs::home_dir(), which is a package.

@certik
Copy link
Collaborator Author

certik commented Sep 8, 2024

This now works, it was fixed in #85.

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