Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: What should Python apps do when asked to show help? Date: Sun, 1 May 2016 02:30:40 +0000 (UTC) Lines: 19 Message-ID: References: <5724253e$0$22142$c3e8da3$5496439d@news.astraweb.com> <20160430235132.GA83556@cskk.homeip.net> <1462063311.237252.594520729.52D9D362@webmail.messagingengine.com> X-Trace: news.uni-berlin.de l1EFaMPVQyH/A/C6/szxIwuduc5OTOJuDvxqhUJE7q0g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'append': 0.07; 'default.': 0.07; 'subject:help': 0.07; 'command.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'explicitly': 0.15; 'invokes': 0.16; 'invoking': 0.16; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'right:': 0.16; 'subject:show': 0.16; 'subject:when': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; 'variable': 0.18; 'either.': 0.22; 'sat,': 0.23; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'specify': 0.27; 'argue': 0.29; 'invoke': 0.29; 'name?': 0.29; 'environment': 0.29; "i'm": 0.30; 'that.': 0.30; 'case,': 0.34; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'received:org': 0.37; 'why': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; '30,': 0.63 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 97-91-88-140.dhcp.roch.mn.charter.com User-Agent: slrn/1.0.2 (Linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5724253e$0$22142$c3e8da3$5496439d@news.astraweb.com> <20160430235132.GA83556@cskk.homeip.net> <1462063311.237252.594520729.52D9D362@webmail.messagingengine.com> Xref: csiph.com comp.lang.python:107930 On 2016-05-01, Random832 wrote: > On Sat, Apr 30, 2016, at 19:51, cs@zip.com.au wrote: >> _When_ they want a pager. > > Why would they need an environment variable at all in that case, rather > than explicitly invoking the pager by name? We don't want to use a PAGER variable to specify when we want a pager and when we don't want a pager. If we want a pager we append "| less" to the command. If we don't want a pager, we don't append that to the command. For historical reasons, "man" invokes a pager by default. I'm not crazy about that. If you want to argue that it's being inconsistent then you're right: man shouldn't invoke a pager either. -- Grant