Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

gdamore/less-fork

Repository files navigation

LESS FORK

License

This version of Less (which is a fork, see below), is made available under the terms of the Less License, located in the file LICENSE. Some of the source files may be also distributed under the GPLv3, and the implementations of strlcpy and strlcat (which will not be used if your platform supplies them) are provided courtesy of OpenBSD under an MIT-style license. (See the source code files for more specific details.)

The original Less v458 carried the following notice:

This is the distribution of less, version 458, released 04 Apr 2013.
This program is part of the GNU project (http://www.gnu.org).

This program is free software.  You may redistribute it and/or
modify it under the terms of either:

1. The GNU General Public License, as published by the Free
   Software Foundation; either version 3, or (at your option) any
   later version.  A copy of this license is in the file COPYING.
or
2. The Less License, in the file LICENSE.

This modified distribution is generally made available under the terms of Less License, and we have chosen the Less License as the terms under which we distribute our changes.

About

This is a version of LESS, a file viewer, that has been modified heavily. It is based on Mark Nudelman's original program, Less v458. The original less is located at http://www.greenwoodsoftware.com/less/

This version is modified to work better on POSIX systems, and uses APIs that older systems and non-POSIX platforms might lack. In many cases these newer APIs have improved safety or performance.

It is also modified to substantially improve its compliance with the POSIX specifications when running as more. We believe that when called as more, less fully implements both Issue 6 and Issue 7 specified behaviors of the more utility.

Finally, substantial effort has been invested to improve the readability and maintainability of the code, and to avoid reimplementing library functions found on standard systems.

An incomplete list of changes is located in the file CHANGES.

Acknowledgements

Mark Nudelman created the original Less program, which we have used for many years on many platforms.

The OpenBSD team has contributed a number of improvements, mostly oriented around safety and hardening of the code.

Building

If you have CMake 3.1 or newer, then that is probably the best option:

$ mkdir build
$ cd build
$ cmake ..
$ make

Alternatively, you can use the Makefile where we have some default targets based on build type. Use make STD=<x> where x is one of:

  • ILLUMOS
  • MACOS
  • SUSv4
  • SUSv3
  • SUSv2

See the Makefile for more details. There is a STD=default option you can try if your platform isn't listed. (CMake is more likely to yield a positive result in this case, however.)

Enjoy!

- Garrett D'Amore <garrett@damore.org>, Aug. 3, 2017

About

This is a version of less forked and optimized for use on POSIX SUSv3 systems (incl. as "more")

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages