Repository navigation
Conversation
|
By analyzing the blame information on this pull request, we identified @dfandrich, @bagder and @danielshahaf to be potential reviewers |
|
Haven't tested it, but looks good to me. As to |
|
I think it needs some extra precaution for cross-compile builds, as then there's no "just built" version of curl around to run. |
|
Various ways to fix cross-builds:
|
|
We set a symbol called And the "right" piece will be put into the final makefile by configure. |
|
I think there are two parts to this fix. First part, since cross-builds currently generate a broken zsh completion script, fix that. The first part of this PR does that by having script/zsh.pl die(). Perhaps even forbid --with-zsh-functions-dir for cross-builds at configure (to fail as early as possible). Second part, how might cross-builds generate a zsh completion script. The Perl script relies on the |
|
Running curl --help each time one does curl is a very bad idea, just disabling zsh completion generation for cross builds makes more sense. |
|
It's not "every time one runs curl", it's only once per shell session: once you do And please explain why you think it's a bad idea. Shelling out to the target command is common practice: 119 out of 801 completers in the zsh distribution invoke |
|
If it's once per shell its more than fine, its good :-) Thanks! |
Instead of generation a broken completion file.
The script should use the just-built curl, not the system one. This fixes zsh completion generation when no system curl is installed.
|
@bagder added commit to disable completion generation/installation when cross-compiling (not sure if there's a smarter way to do it). |
|
Thanks a lot, these commits have now been merged as of commit ebfe00c. If anyone has any further improvements on the zsh completions, please just file another issue or PR! |
No description provided.