X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_00,GENERIC_IXHASH,MISSING_HEADERS,NIXSPAM_IXHASH X-Spam-Check-By: sourceware.org Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Subject: RE: man redirect error Date: Wed, 4 Jan 2012 08:51:16 -0600 Message-ID: <786EBDA1AC46254B813E200779E7AD3601FD162A@srv1163ex1.flightsafety.com> In-Reply-To: <1325687660.28537.1.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> From: "Thrall, Bryan" CC: , "Thrall, Bryan" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 q04Epf3W014988 Reid Thompson wrote on 2012-01-04: > On Tue, 2012-01-03 at 15:30 -0600, Nellis, Kenneth wrote: >> Thought maybe someone would be interested in the following error. >> >> $ man gcc | head >> GCC(1) GNU >> GCC(1) >> >> >> >> NAME >> gcc - GNU project C and C++ compiler >> SYNOPSIS >> gcc [-c|-S|-E] [-std=standard] >> [-g] [-pg] [-Olevel] >> Error executing formatting or display command. >> System command (cd "/usr/share/man" && (echo ".pl 11i"; /usr/bin/gunzip >> -c '/usr/share/man/man1/gcc.1.gz') | /usr/bin/tbl | /usr/bin/nroff -c >> -mandoc 2>/dev/null | /usr/bin/less -isrR) exited with status 36096. >> No manual entry for gcc >> $ > > > probably not. Why are you wanting to head the output? Man already > displays using a pager. 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