X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org From: Reid Thompson To: "Thrall, Bryan" CC: Reid Thompson , "cygwin AT cygwin DOT com" Subject: RE: man redirect error Date: Wed, 4 Jan 2012 20:12:57 +0000 Message-ID: <1325707977.7212.4.camel@raker2.ateb.com> References: <2BF01EB27B56CC478AD6E5A0A28931F203C949C7 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> <1325687660 DOT 28537 DOT 1 DOT camel AT raker2 DOT ateb DOT com> <786EBDA1AC46254B813E200779E7AD3601FD162A AT srv1163ex1 DOT flightsafety DOT com> In-Reply-To: <786EBDA1AC46254B813E200779E7AD3601FD162A@srv1163ex1.flightsafety.com> Reply-To: Reid Thompson Content-Type: text/plain; charset="utf-8" Content-ID: <5A4DEEABDBE3C742B406AC7546ADF34A AT ateb DOT com> MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id q04KDVmj003246 On Wed, 2012-01-04 at 08:51 -0600, Thrall, Bryan wrote: > Perhaps the OP was looking for something like apropos or whatis? > > Given that man already pipes its output through a pager, the OP could just use the MANPAGER environment variable to do what he wants: > > $ MANPAGER=head man gcc > GCC(1) GNU GCC(1) > > > > NAME > gcc - GNU project C and C++ compiler > > SYNOPSIS > gcc [-c|-S|-E] [-std=standard] > [-g] [-pg] [-Olevel] > > Hope this helps, > -- > Bryan Thrall > Principal Software Engineer > FlightSafety International > bryan DOT thrall AT flightsafety DOT com > > http://cygwin.com/cgi-bin2/package-grep.cgi?grep=apropos