Up to [cvs.NetBSD.org] / pkgsrc / misc / less
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
misc/less: Update to 710
Changelog:
710:
These are the differences between version 704 and version 710:
* Add || command.
* In | and || commands, ^N allows entering line number instead of mark
letter.
* Add "ESC-]" / "ESC-RIGHTARROW" (right-limit-scroll) command (github #783).
* In lesskey files, add \k^x syntax for control chars and \k+x syntax for
shifted chars.
* Underline OSC 8 links in text.
* Add -DO for custom coloring of OSC 8 links.
* Add LESSMSG, which allows translation of messages into other languages.
* Add LESSSECURE_DISALLOW.
* Add LESS_SHELL_COPTION.
* Add %G, %y, and %% in prompt strings.
* Add lesskey support for shift-uparrow, shift-downarrow, shift-pageup,
shift-pagedown, ctl-uparrow, ctl-downarrow, ctl-pageup, ctl-pagedown,
shift-delete.
* Change "make check" to use nonstandard object and binary file names, to
avoid accidentally installing test binaries (github #791).
* Fix issues on systems with volatile getenv return values.
* Improve error handling for malformed binary lesskey file.
* Improve messaging when using __mouse after --emouse (github #808).
* Remove support for obsolete pre-241 lesskey binary format.
* Remove obsolete lesskey program.
* Move lesskey man page to section 5.
* Update display when resize window while in F mode on Windows.
* Fix missing "END" message at end of &-filtered output (github #774).
* Fix missing bell with G command at end of &-filtered output (github #774).
* Don't reset signal handlers in a subprocess on Windows.
* Fix ' command to not modify the mark when given a numeric argument (github
#799).
* Fix erroneous message from --rscroll command when rscroll char is
non-ASCII.
* Fix unexpected exit when TERM is invalid (github #809).
* Fix possible crash when use ":e #" after ":d" (github #810).
* Fix infinite loop if invalid option letter in LESS_UNSUPPORT.
* Fix crash if run !! command with no previous ! command (github #812).
* Fix inability to run a shell command starting with "!" character.
* Fix bugs using ^S search modifier (github #814).
* Fix display bugs when a status message contains non-ASCII chars or is
displayed on a very narrow screen (github #816).
* Fix bug defining command which has a built-in command as a prefix (github #
795).
* Fix string overrrun if input contains "\e\0".
* Fix memory leak when using ${...} in lesskey file.
* Fix status column display when long line is marked (github #820).
misc/less: Update to 704
Changelog:
704:
Less version 704
Version 704 was released for beta testing on 31 May 2026, and for general use
on 6 June 2026.
These are the differences between version 702 and version 704:
* Fix possibly passing unsafe options to man when opening an OSC 8 link (
github #779).
* Fix possibly sending unsafe OSC sequence to terminal when file contains an
unterminated OSC sequence (github #781).
* In Examine and Shell commands, expand % and # to shell-escaped filenames (
github #784).
702:
Less version 702
Version 702 was released for general use on 22 May 2026.
These are the differences between version 692 and version 702:
* Add --hilite-target option and -DJ to color target line (github #745).
* Add --past-eof option.
* Add --end-prompt option.
* Add --emouse and --rmouse options, and horizontal mouse scrolling and
dragging (github #744).
* Add -DT option to format tilde lines (github #725).
* Change OSC 8 link handling: replace LESS_OSC8_xxx with LESS_OSC8_OPEN_xxx.
Remove %O from prompt expansion as no longer needed. Any use of environment
variables LESS_OSC8_xxx need to be manually changed to use
LESS_OSC8_OPEN_xxx.
* Add ?o to prompt strings, to detect whether an OSC 8 link is selected.
* When scrolling past end-of-file or before beginning-of-file, stop when
exactly one line is left on screen.
* Make -w/-W highlight lines when moving backward as well as forward (github
#729).
* Display pattern in "Pattern not found" message (github #731).
* Allow m and M commands to take a numeric argument to specify the line to be
marked (github #736).
* Allow ' command to take a numeric argument to specify the screen position
on which to place the marked line.
* Allow lesskey to map keypad ENTER with \kpe (github #761).
* Add "noaction" as a possible action in #line-edit section in a lesskey file
(github #761).
* Support POSIX character classes with the built-in V8 regex library (github
#732).
* Change | command to pipe just one line if the marked line is at the top of
the screen (github #733).
* If OSC8 handler command begins with "-", suppress command echo, and if it
begins with ctrl-P, suppress "done" message (github #747).
* Don't ask for confirmation when input is a binary file and stdout is
redirected. Fixes infinite loop in that situation (github #719).
* Make early error messages go to stderr if stdout is redirected (github #719
).
* Don't retry read after read error; fixes hang when attempting to read a
directory or other unreadable file (github #741).
* Fix incorrect restoration of saved mark if not at top of screen.
* With --save-marks, don't save a mark that was cleared with ESC-m.
* Fix buffer overflow when using malformed lesskey file (github #721).
* Fix unexpected scrolling past end of file (github #720).
* Fix bug when env var in LESSKEY_CONTENT partially matches env var defined
in lesskey file (github #727).
* Fix bug when env var in lesskey file matches tail of env var used by less (
github #728).
* Fix command parsing bug when one command is a substring of another. Also
fixes --no-paste option (github #724).
* Fix incorrect display using --color to set character attributes without
color, such as -DS-u (github #730).
* Fix crash when tags file contains invalid line number 0 (github #743).
* Fix build when tparm() doesn't use varargs (github #748).
* Fix prompt overflow when filtering with long prompt (github #749).
* Fix incorrect highlighting when change -i while filtering (github #750).
* Fix erroneous error mesage using --show-preproc-error with some shells (
github #753).
* Fix erroneous highlighting when using a search pattern containing more than
5 pairs of parentheses with PCRE2 (github #754).
* When ^X interrupts F mode, discard pending keys as is done when ^C
interrupts it (github #757).
* Fix bug in Windows where pressing any key during "waiting for data" would
prevent a subsequent ^X from working.
* Fix erroneous display in some situations when using LESS_LINES (github #759
).
* Fix erroneous display after certain messages are displayed in a very narrow
terminal (github #760).
* Don't init terminal if stdout is not a tty (github #768).
* Fix bug clicking OSC 8 link that crosses a screen line boundary (github #
775).
* Fix beeps when resizing window on Windows (github #771).
* Fix beeps when paging continuously on Windows (github #772).
701:
Less version 701
Version 701 was released for beta testing on 15 May 2026.
These are the differences between version 692 and version 701:
* Add --hilite-target option and -DJ to color target line (github #745).
* Add --past-eof option.
* Add --end-prompt option.
* Add --emouse and --rmouse options, and horizontal mouse scrolling and
dragging (github #744).
* Add -DT option to format tilde lines (github #725).
* Change OSC 8 link handling: replace LESS_OSC8_xxx with LESS_OSC8_OPEN_xxx.
Remove %O from prompt expansion as no longer needed. Any use of environment
variables LESS_OSC8_xxx need to be manually changed to use
LESS_OSC8_OPEN_xxx.
* Add ?o to prompt strings, to detect whether an OSC 8 link is selected.
* When scrolling past end-of-file or before beginning-of-file, stop when
exactly one line is left on screen.
* Make -w/-W highlight lines when moving backward as well as forward (github
#729).
* Display pattern in "Pattern not found" message (github #731).
* Allow m and M commands to take a numeric argument to specify the line to be
marked (github #736).
* Allow ' command to take a numeric argument to specify the screen position
on which to place the marked line.
* Allow lesskey to map keypad ENTER with \kpe (github #761).
* Add "noaction" as a possible action in #line-edit section in a lesskey file
(github #761).
* Support POSIX character classes with the built-in V8 regex library (github
#732).
* Change | command to pipe just one line if the marked line is at the top of
the screen (github #733).
* If OSC8 handler command begins with "-", suppress command echo, and if it
begins with ctrl-P, suppress "done" message (github #747).
* Don't ask for confirmation when input is a binary file and stdout is
redirected. Fixes infinite loop in that situation (github #719).
* Make early error messages go to stderr if stdout is redirected (github #719
).
* Don't retry read after read error; fixes hang when attempting to read a
directory or other unreadable file (github #741).
* Fix incorrect restoration of saved mark if not at top of screen.
* With --save-marks, don't save a mark that was cleared with ESC-m.
* Fix buffer overflow when using malformed lesskey file (github #721).
* Fix unexpected scrolling past end of file (github #720).
* Fix bug when env var in LESSKEY_CONTENT partially matches env var defined
in lesskey file (github #727).
* Fix bug when env var in lesskey file matches tail of env var used by less (
github #728).
* Fix command parsing bug when one command is a substring of another. Also
fixes --no-paste option (github #724).
* Fix incorrect display using --color to set character attributes without
color, such as -DS-u (github #730).
* Fix crash when tags file contains invalid line number 0 (github #743).
* Fix build when tparm() doesn't use varargs (github #748).
* Fix prompt overflow when filtering with long prompt (github #749).
* Fix incorrect highlighting when change -i while filtering (github #750).
* Fix erroneous error mesage using --show-preproc-error with some shells (
github #753).
* Fix erroneous highlighting when using a search pattern containing more than
5 pairs of parentheses with PCRE2 (github #754).
* When ^X interrupts F mode, discard pending keys as is done when ^C
interrupts it (github #757).
* Fix bug in Windows where pressing any key during "waiting for data" would
prevent a subsequent ^X from working.
* Fix erroneous display in some situations when using LESS_LINES (github #759
).
* Fix erroneous display after certain messages are displayed in a very narrow
terminal (github #760).
* Don't init terminal if stdout is not a tty (github #768).
* Fix bug clicking OSC 8 link that crosses a screen line boundary (github #
775).
* Fix beeps when resizing window on Windows (github #771).
* Fix beeps when paging continuously on Windows (github #772).
700:
Less version 700
Version 700 was released for beta testing on 30 Apr 2026.
These are the differences between version 692 and version 700:
* Add --hilite-target option and -DJ to color target line (github #745).
* Add --past-eof option.
* Add --end-prompt option.
* Add --emouse and --rmouse options, and horizontal mouse scrolling and
dragging (github #744).
* Add -DT option to format tilde lines (github #725).
* Change OSC 8 link handling: replace LESS_OSC8_xxx with LESS_OSC8_OPEN_xxx,
and replace %o in prompt strings with shell-quoted %O. Any use of
environment variables LESS_OSC8_xxx need to be manually changed to use
LESS_OSC8_OPEN_xxx.
* Add ?o to prompt strings, to detect whether an OSC 8 link is selected.
* When scrolling past end-of-file or before beginning-of-file, stop when
exactly one line is left on screen.
* Make -w/-W highlight lines when moving backward as well as forward (github
#729).
* Display pattern in "Pattern not found" message (github #731).
* Allow m and M commands to take a numeric argument to specify the line to be
marked (github #736).
* Allow ' command to take a numeric argument to specify the screen position
on which to place the marked line.
* Allow lesskey to map keypad ENTER with \kpe (github #761).
* Add "noaction" as a possible action in #line-edit section in a lesskey file
(github #761).
* Support POSIX character classes with the built-in V8 regex library (github
#732).
* Change | command to pipe just one line if the marked line is at the top of
the screen (github #733).
* If OSC8 handler command begins with "-", suppress command echo, and if it
begins with ctrl-P, suppress "done" message (github #747).
* Don't ask for confirmation when input is a binary file and stdout is
redirected. Fixes infinite loop in that situation (github #719).
* Make early error messages go to stderr if stdout is redirected (github #719
).
* Don't retry read after read error; fixes hang when attempting to read a
directory or other unreadable file (github #741).
* Fix incorrect restoration of saved mark if not at top of screen.
* With --save-marks, don't save a mark that was cleared with ESC-m.
* Fix buffer overflow when using malformed lesskey file (github #721).
* Fix unexpected scrolling past end of file (github #720).
* Fix bug when env var in LESSKEY_CONTENT partially matches env var defined
in lesskey file (github #727).
* Fix bug when env var in lesskey file matches tail of env var used by less (
github #728).
* Fix command parsing bug when one command is a substring of another. Also
fixes --no-paste option (github #724).
* Fix incorrect display using --color to set character attributes without
color, such as -DS-u (github #730).
* Fix crash when tags file contains invalid line number 0 (github #743).
* Fix build when tparm() doesn't use varargs (github #748).
* Fix prompt overflow when filtering with long prompt (github #749).
* Fix incorrect highlighting when change -i while filtering (github #750).
* Fix erroneous error mesage using --show-preproc-error with some shells (
github #753).
* Fix erroneous highlighting when using a search pattern containing more than
5 pairs of parentheses with PCRE2 (github #754).
* When ^X interrupts F mode, discard pending keys as is done when ^C
interrupts it (github #757).
* Fix bug in Windows where pressing any key during "waiting for data" would
prevent a subsequent ^X from working.
* Fix erroneous display in some situations when using LESS_LINES (github #759
).
* Fix erroneous display after certain messages are displayed in a very narrow
terminal (github #760).
696:
Less version 696
Version 696 was released for beta testing on 5 Apr 2026.
These are the differences between version 692 and version 696:
* Add --hilite-target option and -DJ to color target line (github #745).
* Add --past-eof option.
* Add --end-prompt option.
* Add --emouse and --rmouse options, and horizontal mouse scrolling and
dragging (github #744).
* Add -DT option to format tilde lines (github #725).
* Add %O to prompt strings, to replace less safe %o.
* Add ?o to prompt strings, to detect whether an OSC 8 link is selected.
* When scrolling past end-of-file or before beginning-of-file, stop when
exactly one line is left on screen.
* Make -w/-W highlight lines when moving backward as well as forward (github
#729).
* Display pattern in "Pattern not found" message (github #731).
* Allow m and M commands to take a numeric argument to specify the line to be
marked (github #736).
* Allow ' command to take a numeric argument to specify the screen position
on which to place the marked line.
* Support POSIX character classes with the built-in V8 regex library (github
#732).
* Change | command to pipe just one line if the marked line is at the top of
the screen (github #733).
* If OSC8 opener command begins with "-", suppress command echo, and if it
begins with ctrl-P, suppress "done" message (github #747).
* Don't ask for confirmation when input is a binary file and stdout is
redirected. Fixes infinite loop in that situation (github #719).
* Make early error messages go to stderr if stdout is redirected (github #719
).
* Don't retry read after read error; fixes hang when attempting to read a
directory or other unreadable file (github #741).
* Fix incorrect restoration of saved mark if not at top of screen.
* With --save-marks, don't save a mark that was cleared with ESC-m.
* Fix buffer overflow when using malformed lesskey file (github #721).
* Fix unexpected scrolling past end of file (github #720).
* Fix bug when env var in LESSKEY_CONTENT partially matches env var defined
in lesskey file (github #727).
* Fix bug when env var in lesskey file matches tail of env var used by less (
github #728).
* Fix command parsing bug when one command is a substring of another. Also
fixes --no-paste option (github #724).
* Fix incorrect display using --color to set character attributes without
color, such as -DS-u (github #730).
* Fix crash when tags file contains invalid line number 0 (github #743).
* Fix build when tparm() doesn't use varargs (github #748).
* Fix prompt overflow when filtering with long prompt (github #749).
* Fix incorrect highlighting when change -i while filtering (github #750).
* Fix erroneous error mesage using --show-preproc-error with some shells (
github #753).
692:
Less version 692
Version 692 was released for beta testing on 29 Jan 2026, and was released for
general use on 8 Feb 2026.
These are the differences between version 691 and version 692:
* Revert HOME key to scroll to beginning of file and END key to scroll to end
of file (github #658).
* Configure tty to leave CR and NL unmodified (github #703).
* Add commands to lesskey parser (forw-bell-hilite, goto-pos and osc8-jump).
* Add key sequences to lesskey parser (\kE, \kF, \kH, \kI, \kM, and \kS).
* Fix bug using negative value with -z option (github #709).
* Fix bug handling empty terminfo capabilties (github #710).
* Fix memory leak in setupterm (github #707).
* Make lesstest ignore system locale (nl_langinfo) (github #708).
691:
Less version 691
Version 691 was released for beta testing on 10 Jan 2026, and was released for
general use on 20 Jan 2026.
These are the differences between version 685 and version 691:
* Add --autosave option (github #678).
* Add ESC-f command (github #680).
* Add column number to long prompt and = message.
* Add prompt prototype sequences %C, %W, %Q and ?Q (github #685).
* Map keypad keys, and use terminfo rather than termcap since keypad
definitions don't exist in termcap (github #650).
* Change HOME key to scroll fully left and END key to scroll fully right. Add
shift-HOME and ctrl-HOME to scroll left and jump to top, and add shift-END
and ctrl-END to scroll right and jump to end (github #658).
* Add LESSNOCONFIG environment variable.
* Add --without-termlib to configure (github #701).
* When setting line number colors (-DN), don't force bold attribute. To set
bold, you must append "d" or "*" to the color string (github #684).
* While waiting for file data, only ^C or ^X will interrupt, not any command.
This reverts to behavior that existed before less-670 (github #700).
* When --save-marks is not used, retain any marks saved in the history file (
github #662).
* Defer sending the terminal init string until the first char is read from
the input file (github #682).
* Make SIGHUP do an orderly exit like SIGTERM.
* Implement modeline handling in Windows build.
* Fix bugs and improve behavior of screen resize on Windows.
* Fix bug when entering search modifier key at start of non-empty search
string (github #668).
* Fix bug repainting screen with --form-feed (github #672).
* Fix bugs passing invalid negative values to some command line options (
github #675).
* Fix incorrect display of Lit indicator (github #670).
* Fix incorrect display when returning to a mark after resizeing window (
github #681).
* Fix bug using --pattern with --incsearch (github #696).
* Disallow mouse click to open OSC8 link in SECURE mode (github #676).
* Add SECURE_COMPILE environment variable for Windows builds.
* Update Unicode tables.
690:
Less version 690
Version 690 was released for beta testing on 2 Jan 2026.
These are the differences between version 685 and version 690:
* Add --autosave option (github #678).
* Add ESC-f command (github #680).
* Add column number to long prompt and = message.
* Add prompt prototype sequences %C, %W, %Q and ?Q (github #685).
* Map keypad keys, and use terminfo rather than termcap since keypad
definitions don't exist in termcap (github #650).
* Change HOME key to scroll fully left and END key to scroll fully right. Add
shift-HOME and ctrl-HOME to scroll left and jump to top, and add shift-END
and ctrl-END to scroll right and jump to end (github #658).
* Add LESSNOCONFIG environment variable.
* Add --without-termlib to configure (github #701).
* When setting line number colors (-DN), don't force bold attribute. To set
bold, you must append "d" or "*" to the color string (github #684).
* While waiting for file data, only ^C or ^X will interrupt, not any command.
This reverts to behavior that existed before less-670 (github #700).
* When --save-marks is not used, retain any marks saved in the history file (
github #662).
* Defer sending the terminal init string until the first char is read from
the input file (github #682).
* Make SIGHUP do an orderly exit like SIGTERM.
* Implement modeline handling in Windows build.
* Fix bugs and improve behavior of screen resize on Windows.
* Fix bug when entering search modifier key at start of non-empty search
string (github #668).
* Fix bug repainting screen with --form-feed (github #672).
* Fix bugs passing invalid negative values to some command line options (
github #675).
* Fix incorrect display of Lit indicator (github #670).
* Fix incorrect display when returning to a mark after resizeing window (
github #681).
* Fix bug using --pattern with --incsearch (github #696).
* Disallow mouse click to open OSC8 link in SECURE mode (github #676).
* Add SECURE_COMPILE environment variable for Windows builds.
* Update Unicode tables.
Sort PLIST files. Unsorted entries in PLIST files have generated a pkglint warning for at least 12 years. Somewhat more recently, pkglint has learned to sort PLIST files automatically. Since pkglint 5.4.23, the sorting is only done in obvious, simple cases. These have been applied by running: pkglint -Cnone,PLIST -Wnone,plist-sort -r -F
Update to less-394. Major changes since less-382: o Add history file to save search and shell command history between invocations of less. o Improve behavior of history list for search and shell commands. o Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. o Improve handling of UTF-8 files and commands, including better line wrapping and handling double-width chars. o Added LESSUTFBINFMT environment variable to control display of non-printable characters in a UTF-8 file. o Add --with-secure option to configure, to make it easier to build a secure version of less. o Show search matches in the status column even if search highlights are disabled via the -G option or the ESC-u command. o Improve performance when the file contains very long lines. o Add "windows" charset. o Add man page for lessecho. o Add support for erase2 character, treated same as erase. o Use ASCII lowercase/uppercase logic when operating on the command line. o Update makefile for Borland C++ 5.5.1. o Fix bug in calculating number of pages for %D prompt. o Fix bug in handling tag file error. o Fix obscure bug if input file is deleted while viewing help. o Fix bug handling filenames which include square brackets. o Fix possible buffer overflow in "global" tag search. o Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. o Fix buffer overflow in reverse search.
Move pkg/ files into package's toplevel directory