summaryrefslogtreecommitdiffstats
path: root/usr.bin/less
Commit message (Collapse)AuthorAgeFilesLines
* Note that the manual page of less(1) says:delphij2012-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Note that a preprocessor cannot output an empty file, since that is interpreted as meaning there is no replacement, and the origi- nal file is used. To avoid this, if LESSOPEN starts with two ver- tical bars, the exit status of the script becomes meaningful. If the exit status is zero, the output is considered to be replace- ment text, even if it empty. If the exit status is nonzero, any output is ignored and the original file is used. For compatibil- ity with previous versions of less, if LESSOPEN starts with only one vertical bar, the exit status of the preprocessor is ignored. Use two pipe symbols for zless, so that zless'ing a compressed empty file will give output rather than being interpreted as its compressed form, which is typically a binary. Thanks Mark Nudelman for pointing out this difference and the suggested solution. Reported by: Matthias Meyser <meyser xenet.de> PR: bin/168839 MFC after: 2 weeks
* Fix build with clang: properly terminate comment even in #if 0 blocks.delphij2012-11-051-1/+1
| | | | Submitted by: dim
* MFV: less v453.delphij2012-11-041-0/+12
|
* MFV: less v449.delphij2012-06-261-9/+3
|
* Regenerated with latest configure script.delphij2011-05-101-0/+6
| | | | MFC after: 1 month
* Import of liblzma, xz, xzdec, lzmainfo from vendor branchmm2010-05-102-1/+9
| | | | | | | | Add support for xz and lzma to lesspipe.sh (xzless, lzless) Bump __FreeBSD_version Approved by: delphij (mentor) MFC after: 2 weeks
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+1
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Update less to v436. This is considered as a bugfix release from vendor.delphij2009-07-291-4/+5
| | | | | | | | | | Major changes from v429: * Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". * Allow a fraction as the argument to the -# (--shift) option. * Fix highlight bug when underlined/overstruck text matches at end of line. * Fix non-regex searches with ctrl-R. Approved by: re (kensmith, kib)
* Resolve conflicts; Update defines.h to reflect latest change.delphij2007-11-161-0/+9
|
* Regen.delphij2007-06-041-23/+26
|
* Fix handling of filenames containing whitespace.le2007-05-241-3/+3
| | | | | PR: bin/112860 MFC in: 3 days
* In rev. 1.2 we have introduced a fallback handler for files with unknowndelphij2006-08-301-3/+0
| | | | | | | | | | extensions. This seems to be unnecessary and prevents less(1) from being able to detect file changes, so remove the part. Submitted by: Eric Huss <e-huss netmeridian com> PR: bin/102624 Discussed with: des MFC After: 3 days
* Regen.delphij2006-08-201-2/+15
|
* Correct the script name to be "zless.sh". This avoids an extra cp/chmodru2005-05-171-1/+1
| | | | (from the sys.mk rule) while still installing it under the "zless" name.
* Add a zless script which invokes less using the lesspipe script. This isdes2005-05-172-3/+11
| | | | | | | | | similar to the zmore script that comes with gzip (and in fact, in most Linux distros, zless is a symlink to that very same zmore script) but has the advantage that you get the correct file name on the less status line, and can use :n and :p to navigate back and forth between multiple files. MFC after: 1 week
* Handle presumably uncompressed files with cat; exec the handlers.des2005-05-171-3/+9
| | | | MFC after: 1 week
* Restore old value of LESSKEYFILE_SYS.tjr2004-04-171-1/+1
|
* Regenerate with less 381 configure script.tjr2004-04-171-117/+173
|
* Usekuriyama2003-06-061-1/+1
| | | | | | | | | cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde
* Add an embellished lesspipe.sh as described in the man page.obrien2003-03-062-0/+15
| | | | P.S. it is stupid I have to define both SCRIPTS and SCRIPTSNAME.
* Use ${BINDIR} instead of hardcoded path.johan2002-12-181-1/+1
| | | | | | | PR: 44582 Submitted by: Jon Disnard <jon.disnard@ca.com> Reviewed by: ru MFC after: 3 weeks
* Update for less v371ps2002-01-071-0/+4
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* ncurses -> termcapache2000-07-141-2/+2
|
* Upgrade to less v358.ps2000-07-141-0/+9
|
* Fixed some style bugs. Apart from formatting bugs, MANDEPEND is deprecatedbde2000-06-032-16/+5
| | | | and $< and $@ are even documented as deprecated.
* Install a manpage for more.ps2000-05-231-0/+2
|
* Detach usr.bin/more and install a link from less. less will behaveps2000-05-231-0/+2
| | | | like more if invoked as more. The old more has not been removed.
* Dont use/install the formatted man file.ps2000-05-221-2/+2
|
* bmake glue for less.ps2000-05-223-0/+361
Reviewed by: peter
OpenPOWER on IntegriCloud