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

Fix bad variable name error during build on WSL #2062

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

timmyyuan
Copy link

WSL appends Windows environment variables to PATH, which causes /bin/sh to report a bad variable name error:

export PATH=//home/user/.cargo/bin:$PATH; cd zeroidc && cargo build --release
/bin/sh: 1: export: Files/Git/cmd:/mnt/c/Program: bad variable name
make: *** [make-linux.mk:433: zeroidc] Error 2

This fix adds double quotes to avoid this problem. See also https://askubuntu.com/questions/1354999/bad-variable-name-error-on-wsl

WSL appends Windows environment variables to PATH, which causes `/bin/sh` to report a bad variable name error. This fix adds double quotes to avoid this problem. See also  https://askubuntu.com/questions/1354999/bad-variable-name-error-on-wsl
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

Successfully merging this pull request may close these issues.

None yet

1 participant