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

gauche-config --I and paths with whitespaces #1075

Open
shirok opened this issue Oct 15, 2024 · 3 comments
Open

gauche-config --I and paths with whitespaces #1075

shirok opened this issue Oct 15, 2024 · 3 comments

Comments

@shirok
Copy link
Owner

shirok commented Oct 15, 2024

gauche-config -I and gauche-config -L returns compiler options for include paths and library paths. The document says they don't work if Gauche installation path contains whitespaces, since if that's the case, the output becomes like this.

$ gauche-config -L
-L/some/path with spaces/lib -L/other/directory

However, why didn't we quote the paths with whitespaces? I think there are some obscure pitfalls (probably on Windows) but can't recall what it is. If we can quote them, we can remove this wart.

@lassik
Copy link
Contributor

lassik commented Oct 16, 2024

AFAICT the problem is also on the shell's end.

args="$(gauche-config -L)"
cc $args  # does not do what it should when the args contain spaces, even if you quote them

@lassik
Copy link
Contributor

lassik commented Oct 16, 2024

$ gauche-config -L
-L/some/path with spaces/lib
-L/other/directory

might work if you can get the shell to split on newlines.

@shirok
Copy link
Owner Author

shirok commented Oct 16, 2024

Aargh, that may be it.

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