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

Rémi Denis-Courmont remi at remlab.net
Tue May 14 18:59:18 CEST 2019


Le tiistaina 14. toukokuuta 2019, 17.15.49 EEST Steve Lhomme a écrit :
> 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-i
> nstead-of-stdout
> 
> For example grep -k returns a basic usage line to stderr.

Seems like this is not universal then. I don't really care either way then.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list