[vlc-devel] [PATCH] bootstrap: return errors to stderr

Steve Lhomme robux4 at ycbcr.xyz
Tue May 14 16:15:49 CEST 2019


On 2019-05-03 16:47, Rémi Denis-Courmont wrote:
> Le perjantaina 3. toukokuuta 2019, 15.35.32 EEST Steve Lhomme a écrit :
>> ---
>>   bootstrap | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/bootstrap b/bootstrap
>> index 995fee2011..a9f86b6063 100755
>> --- a/bootstrap
>> +++ b/bootstrap
>> @@ -12,8 +12,8 @@ set -e
>>   cd "$(dirname "$0")"
>>
>>   if test "$#" != "0"; then
>> -  echo "Usage: $0"
>> -  echo "  Calls autoreconf to generate m4 macros and prepare Makefiles."
>> +  echo "Usage: $0" >&2
>> +  echo "  Calls autoreconf to generate m4 macros and prepare Makefiles."
>>> &2 exit 1
>>   fi
> 
> AFAICT, usage/help text is always printed to stdout.

It doesn't look like 
https://www.jstorimer.com/blogs/workingwithcode/7766119-when-to-use-stderr-instead-of-stdout

For example grep -k returns a basic usage line to stderr.


More information about the vlc-devel mailing list