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

Re: [PATCH] pager: set LV=-c alongside LESS=FRSX

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Jan 7, 2014, 18:17 UTC
Message-ID
<87iotvbqsa.fsf@igel.home>
In-Reply-To
<xmqqha9fg225.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
>  - Scripted Porcelains get LESS=-FRSX while C Porcelains get
>    LESS=FRSX as the default (the leading dash being the
>    difference), which looks somewhat inconsistent.  Not a new
>    problem, though.

Even the less manpage is inconsistent about whether $LESS should start with a dash (there are examples with and without it). Implementation-wise, less uses the same function to process an option argument (including the leading dash) and the value of $LESS, so the form with the leading dash is probably preferred.

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Junio C HamanoNext: Anders Kaseorg
Message 4 of 7 in “pager: set LV=-c alongside LESS=FRSX”
  1. pager: set LV=-c alongside LESS=FRSXJonathan Nieder, Jan 7, 2014
  2. Olaf MeeuwissenJan 7, 2014
  3. Junio C HamanoJan 7, 2014
  4. Andreas SchwabJan 7, 2014
  5. Anders KaseorgJan 30, 2014
  6. pager test: make fake pager consume all its inputJonathan Nieder, Jan 30, 2014
  7. Junio C HamanoJan 31, 2014

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.