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

libtool: Allow spaces in program paths #3376

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zlaski
Copy link

@zlaski zlaski commented Dec 7, 2022

This makes libtool more Windows-friendly. Sometimes, libtool will find tools like C:\Program Files (x86)\Git\bin\ld that it subsequently cannot handle.

@lazka
Copy link
Member

lazka commented Dec 9, 2022

thanks, we should take the opportunity and try to report this upstream at least.

case `"$_G_path_prog" --version 2>&1` in
- *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
- *) $_G_check_func $_G_path_prog
+ *GNU*) func_path_progs_result="$_G_path_prog" _G_path_prog_found=: ;;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignments like a=$b do not need any quotation, since bash does respect any white spaces when expanding the variable in assignments.

This reduces the patch to quoted arguments which is required, of course.

I am wondering how backslashes in a directory are avoided or treated. This additional issue should be dealt with if reported upstream I believe.

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

3 participants