delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/28/23:29:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4ED45F9A.4020100@bopp.net>
Date: Mon, 28 Nov 2011 22:29:14 -0600
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Minor cygrunsrv nit: --help should go to stdout, not stderr
References: <4ED459F2 DOT 7020200 AT gmail DOT com>
In-Reply-To: <4ED459F2.7020200@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 11/28/2011 10:05 PM, Daniel Colascione wrote:
> Currently, cygrunsrv --help dumps output to standard error. This
> behavior is a slight annoyance because it results in cygrunsrv --help |
> less not being very helpful. Can cygrunsrv --help dump its output to
> stdout instead?

It's not the first program I've seen behave that way, but it doesn't
seem to be common behavior when explicitly requesting help output like that.

In case you don't know, you can work around it by redirecting stderr to
stdout:

cygrunsrv --help 2>&1 | less

-Jeremy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019