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

usage of pwd #2

Open
farbodbj opened this issue Oct 9, 2023 · 0 comments
Open

usage of pwd #2

farbodbj opened this issue Oct 9, 2023 · 0 comments

Comments

@farbodbj
Copy link

farbodbj commented Oct 9, 2023

The recommended way of running the environment provided in your readme: docker run -it --rm -v $(pwd):/home/xv6/xv6-riscv wtakuo/xv6-env fails in many cases, because the path in which xv6-riscv is located my often include space which when used as $(pwd) causes the whole path to break and create an invalid command. Thus replacing $(pwd) with "$(pwd)" is recommended and will fix the issue.
Also to make the script runnable from other directories (when it's in a bash file and is to be launched from elsewhere) I recommend using ${0%/*} instead that will substitute the path where the script is located.

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

1 participant