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: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 11 Jan 2023 14:39:47 +0100 (CET)

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...

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-01-11