curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Accidental debug-enabled version

From: Kamil Dudka via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 11 Jan 2023 15:41:43 +0100

On Wednesday, January 11, 2023 2:39:47 PM CET Daniel Stenberg via curl-library wrote:
> On Wed, 11 Jan 2023, Jeffrey Walton wrote:
>
> > I would not put it on the first line. Some folks may be parsing the
> > first line for a version number using something like:
> >
> > curl_version=$(curl -V | head -n 1 | cut -f 2 -d ' ')
> >
> > Somewhere further down in the stack would probably be a better choice.
>
> Good point. We could also consider making the first two lines get sent to
> stderr, as it gives the same visual but the command line you show here would
> work...

Unless someone uses `curl -V 2>&1 | grep ...` like curl's autoconf test did it
with GCC:

    https://github.com/curl/curl/commit/curl-7_49_1-45-gb2dcf0347

Kamil


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-01-11