Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2002 14:40:03 -0700 (PDT)
From:      "dave" <erigol@optushome.com.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/37662: man(1) fails to display anything if $PAGER is set but blank
Message-ID:  <200205272140.g4RLe3L32242@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/37662; it has been noted by GNATS.

From: "dave" <erigol@optushome.com.au>
To: <pgl@yoyo.org>
Cc: <dwmalone@maths.tcd.ie>, <freebsd-gnats-submit@FreeBSD.org>
Subject: Re: bin/37662: man(1) fails to display anything if $PAGER is set but blank
Date: Tue, 28 May 2002 07:29:46 +1000

 This will work for both 'unset PAGER' and 'export PAGER='
 
    if (pager == NULL || *pager == '\0')
 -    if ((pager = getenv ("PAGER")) == NULL)
 +    if ((pager = getenv ("PAGER")) == NULL || *pager == '\0')
        pager = strdup (PAGER);
 
 Dave
 
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205272140.g4RLe3L32242>