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
curl.1: Problem with '-' #6698
Comments
I have personally searched for minus + text in the curl man page to find the docs for an option quite literally thousands of times and I've never had a problem with that. I presume it will depend on environment or something. The curl.1 man page is generated at build-time by gen.pl. We should probably consider making a generic regex to fixup minuses in the input to backslash-minuses in the output? |
Reported-by: Alejandro Colomar Fixes #6698
@alejandro-colomar how do you spot/reproduce this problem? |
Hi @bagder, Sorry for not answering before; I was busy. I'm using Debian Sid, so I guess on Debian-based systems it is likely to reproduce. I guess some distros don't make a difference when rendering the different minus-like symbols and some do. I'm not sure if that's the cause, but it's likely. The groff maintainers will probably know better and have a good recommendation for how to proceed in your case. Thanks, Alex |
@alejandro-colomar any chance you can test my PR (#6722) for your case before I merge it just to double-check it does what we want? |
Yes, I can do that. However, I've never built curl. I tried following the GIT-INFO, and received some errors:
How should I proceed? |
On Fri, Mar 12, 2021 at 05:37:30AM -0800, Alejandro Colomar wrote:
configure:7396: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:7397: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1
This is an indication your installation is missing libtool and its autoconf
macros.
|
|
I merged it so you can instead build from or check the next daily snapshot which comes with pre-generated configure scripts and curl.1 etc. |
Hi, Sorry for the delay. Yes, it's fixed by that PR. I tested the builds 20210312 (for comparison) and 20210315, and the old one didn't work while the new one worked fine. Thanks, Alex |
Where's the source code for curl.1? I was trying to fix this myself, but I couldn't find it.
The '-' symbol is not being used correctly (you should use '-', which I guess you're not using). How it matters to me: I was searching for option '-s' in the manual page, for which I simply typed '/ -s' in the pager, and to my surprise it didn't show anything; the rendered '-' character is a different character from the one I'm typing, so it doesn't find it. A simple '/-' search only showed 2 appearances, which is weird.
See also:
and also: https://lore.kernel.org/linux-man/20210122170217.kndzit52utaoisfa@localhost.localdomain/T/.
The text was updated successfully, but these errors were encountered: