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