Permalink
Browse files

import less 394. this includes these changes:

* Add history file to save search and shell command history between
  invocations of less.

* Improve behavior of history list for search and shell commands.

* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.

* Improve handling of UTF-8 files and commands, including better
  line wrapping and handling double-width chars.

* Added LESSUTFBINFMT environment variable to control display of
  non-printable characters in a UTF-8 file.

* Add --with-secure option to configure, to make it easier to
  build a secure version of less.

* Show search matches in the status column even if search highlights
  are disabled via the -G option or the ESC-u command.

* Improve performance when the file contains very long lines.

* Add "windows" charset.

* Add man page for lessecho.

* Add support for erase2 character, treated same as erase.

* Use ASCII lowercase/uppercase logic when operating on the command line.

* Update makefile for Borland C++ 5.5.1.

* Fix bug in calculating number of pages for %D prompt.

* Fix bug in handling tag file error.

* Fix obscure bug if input file is deleted while viewing help.

* Fix bug handling filenames which include square brackets.

* Fix possible buffer overflow in "global" tag search.

* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.

* Fix buffer overflow in reverse search.

* Removed some old copyrighted code.
  This probably breaks OS/9 support.
  • Loading branch information...
1 parent daf5967 commit 202cc4e5e28933117203f19cc9d36bc3351e67c0 mrg committed Oct 26, 2006
Showing with 2,724 additions and 1,101 deletions.
  1. +57 −2 usr.bin/less/less/NEWS
  2. +6 −5 usr.bin/less/less/README
  3. +1 −1 usr.bin/less/less/brac.c
  4. +1 −1 usr.bin/less/less/ch.c
  5. +742 −43 usr.bin/less/less/charset.c
  6. +1 −1 usr.bin/less/less/cmd.h
  7. +472 −71 usr.bin/less/less/cmdbuf.c
  8. +31 −20 usr.bin/less/less/command.c
  9. +3 −3 usr.bin/less/less/decode.c
  10. +15 −2 usr.bin/less/less/defines.h
  11. +12 −4 usr.bin/less/less/edit.c
  12. +32 −22 usr.bin/less/less/filename.c
  13. +3 −10 usr.bin/less/less/forwback.c
  14. +20 −8 usr.bin/less/less/funcs.h
  15. +1 −1 usr.bin/less/less/ifile.c
  16. +78 −15 usr.bin/less/less/input.c
  17. +6 −2 usr.bin/less/less/jump.c
  18. +202 −152 usr.bin/less/less/less.1
  19. +72 −23 usr.bin/less/less/less.h
  20. +575 −294 usr.bin/less/less/line.c
  21. +1 −1 usr.bin/less/less/linenum.c
  22. +4 −144 usr.bin/less/less/lsystem.c
  23. +8 −6 usr.bin/less/less/main.c
  24. +1 −1 usr.bin/less/less/mark.c
  25. +17 −8 usr.bin/less/less/optfunc.c
  26. +5 −5 usr.bin/less/less/option.c
  27. +1 −1 usr.bin/less/less/option.h
  28. +21 −5 usr.bin/less/less/opttbl.c
  29. +5 −3 usr.bin/less/less/os.c
  30. +30 −40 usr.bin/less/less/output.c
  31. +1 −1 usr.bin/less/less/position.c
  32. +1 −1 usr.bin/less/less/position.h
  33. +21 −9 usr.bin/less/less/prompt.c
  34. +103 −126 usr.bin/less/less/screen.c
  35. +90 −40 usr.bin/less/less/search.c
  36. +4 −1 usr.bin/less/less/signal.c
  37. +18 −21 usr.bin/less/less/tags.c
  38. +33 −2 usr.bin/less/less/ttyin.c
  39. +26 −2 usr.bin/less/less/version.c
  40. +2 −2 usr.bin/less/lesskey/lesskey.1
  41. +1 −1 usr.bin/less/lesskey/lesskey.c
  42. +1 −1 usr.bin/less/lesskey/lesskey.h
View
@@ -7,12 +7,67 @@
http://www.greenwoodsoftware.com/less
You can also download the latest version of less from there.
- To report bugs, suggestions or comments, send email to
- bug-less@gnu.org or markn@greenwoodsoftware.com.
+ To report bugs, suggestions or comments, send email to bug-less@gnu.org.
======================================================================
+ Major changes between "less" versions 382 and 394
+
+* Add history file to save search and shell command history between
+ invocations of less.
+
+* Improve behavior of history list for search and shell commands.
+
+* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.
+
+* Improve handling of UTF-8 files and commands, including better
+ line wrapping and handling double-width chars.
+
+* Added LESSUTFBINFMT environment variable to control display of
+ non-printable characters in a UTF-8 file.
+
+* Add --with-secure option to configure, to make it easier to
+ build a secure version of less.
+
+* Show search matches in the status column even if search highlights
+ are disabled via the -G option or the ESC-u command.
+
+* Improve performance when the file contains very long lines.
+
+* Add "windows" charset.
+
+* Add man page for lessecho.
+
+* Add support for erase2 character, treated same as erase.
+
+* Use ASCII lowercase/uppercase logic when operating on the command line.
+
+* Update makefile for Borland C++ 5.5.1.
+
+* Fix bug in calculating number of pages for %D prompt.
+
+* Fix bug in handling tag file error.
+
+* Fix obscure bug if input file is deleted while viewing help.
+
+* Fix bug handling filenames which include square brackets.
+
+* Fix possible buffer overflow in "global" tag search.
+
+* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.
+
+* Fix buffer overflow in reverse search.
+
+======================================================================
+
+ Major changes between "less" versions 381 and 382
+
+* Removed some old copyrighted code.
+ This probably breaks OS/9 support.
+
+======================================================================
+
Major changes between "less" versions 378 and 381
* New -L option to disable LESSOPEN processing.
View
@@ -1,7 +1,7 @@
- Less, version 381
+ Less, version 394
- This is the distribution of less, version 381, released 17 Jan 2003.
+ This is the distribution of less, version 394, released 03 Dec 2005.
This program is part of the GNU project (http://www.gnu.org).
This program is free software. You may redistribute it and/or
@@ -57,6 +57,10 @@ INSTALLATION (Unix systems only):
regcomp Use the V8-compatible regcomp.
regcomp-local Use Henry Spencer's V8-compatible regcomp
(source is supplied with less).
+ --with-secure
+ Builds a "secure" version of less, with some features disabled
+ to prevent users from viewing other files, accessing shell
+ commands, etc.
3. It is a good idea to look over the generated Makefile and defines.h
and make sure they look ok. If you know of any peculiarities of
@@ -67,9 +71,6 @@ INSTALLATION (Unix systems only):
-lncurses -lcurses -ltermcap -ltermlib
If you wish, you may edit defines.h to remove some optional features.
- If you wish to build a "secure" version of less (which disables all
- features which might allow a user to do unintended things to the system
- on which less is running), edit defines.h and define SECURE to 1.
If you choose not to include some features in your version, you may
wish to edit the manual page "less.nro" and the help page "less.hlp"
to remove the descriptions of the features which you are removing.
View
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2002 Mark Nudelman
+ * Copyright (C) 1984-2004 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
View
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2002 Mark Nudelman
+ * Copyright (C) 1984-2004 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
Oops, something went wrong.

0 comments on commit 202cc4e

Please sign in to comment.