git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "Read my lips: no more merges" - aka Linux 2.6.14-rc1

From
David Kågedal <davidk@lysator.liu.se>
Date
Sep 15, 2005, 17:48 UTC
Message-ID
<u5toe6uql1w.fsf@lysator.liu.se>
In-Reply-To
<Pine.LNX.4.58.0509150905070.26803@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> They have "sensible-pager", but not "less"?
No, you read my message wrong, or I failed to describe it properly.

sensible-pager is just an indirection that uses your preferred pager. This will usually be less, but if a user prefers to use e.g. "w3m" (or "more") that can be done by reconfiguring a symlink (using the update-alternatives program, or even a GUI such as galternatives).

So no, they haven't replaced less with sensible-pager. They just provided another way to select which pager you want. Setting $PAGER will still work the trick.

Running "sensible-pager" will check $PAGER an run that if set, otherwise run the pager selected via the alternatives sytem, which will usually be "less". The alternatives selection is done with a symlink called "/usr/bin/pager".

The advantage is, I guess, consistency. Different programs don't have to encode their own default pager.

To summarize: on a Debian system with "less" as the preferred pager, these four invokations are equal:

  $ ${PAGER:-less}
  $ sensible-pager
  $ pager
  $ less

If you set $PAGER to something else, the first two variants will run $PAGER, while the last two will still run "less".

-- 
David Kågedal
Previous: Linus TorvaldsNext: Linus Torvalds
Message 6 of 10 in “Re: "Read my lips: no more merges" - aka Linux 2.6.14-rc1”
  1. Linus TorvaldsSep 15, 2005
  2. H. Peter AnvinSep 15, 2005
  3. Junio C HamanoSep 15, 2005
  4. David KågedalSep 15, 2005
  5. Linus TorvaldsSep 15, 2005
  6. David KågedalSep 15, 2005
  7. Linus TorvaldsSep 15, 2005
  8. Christian MederSep 15, 2005
  9. Theodore Ts'oSep 16, 2005
  10. Linus TorvaldsSep 15, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.