summaryrefslogtreecommitdiff
path: root/usr.bin/less
Commit message (Collapse)AuthorAgeFilesLines
* MFC: MFV: less v668.Xin LI2024-12-222-28/+36
| | | | (cherry picked from commit c77c488926555ca344ae3a417544cf7a720e1de1)
* include: Implement N2867.Dag-Erling Smørgrav2023-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This adds macros for checked addition, subtraction, and multiplication with semantics similar to the builtins gcc and clang have had for years. Reviewed by: kib, emaste Differential Revision: https://reviews.freebsd.org/D41734 (cherry picked from commit e6615b10347caf67f5bc12c9a8e30b8ddd9860ae) include: Add tests for N2867. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D41735 (cherry picked from commit 4fbb9c43aa44d9145151bb5f77d302ba01fb7551) less: We have <stdckdint.h> now. Reviewed by: delphij Differential Revision: https://reviews.freebsd.org/D41736 (cherry picked from commit cb8dd292c7ec53391dfa25847858dd7ef895f94e) Approved by: re (gjb)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-165-6/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* MFV: less v643.Xin LI2023-08-131-9/+9
| | | | MFC after: 2 weeks
* less: Re-enable -Wdeprecated-non-prototype warnings.John Baldwin2023-05-251-2/+0
| | | | These were fixed in the most recent update to contrib/less.
* MFV: less v632.Xin LI2023-05-021-9/+15
| | | | MFC after: 2 weeks
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-2/+1
|
* less: Silence -Wdeprecated-non-prototype warnings.John Baldwin2023-04-181-2/+2
| | | | | | | | This has an active upstream so will presumably be fixed upstream at some point. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39525
* less: silence K&R warnsMateusz Guzik2023-03-161-0/+2
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* zless(1): handle uncompressed filesFernando ApesteguĂ­a2023-02-201-0/+2
| | | | | | | | | | | | | | In the manual page for zmore(1) and zless(1) it is said that zless(1) is equivalent to zmore(1) except that it uses less(1) as a pager. However zmore(1) is able to handle uncompressed files transparently while zless(1) is not. Add another case to the switch in lesspipe.sh to handle non-compressed files. PR: 196437 Reported by: marquis@roble.com Approved by: mjg@ Differential Revision: https://reviews.freebsd.org/D38674
* pkgbase: Put less in FreeBSD-runtimeEmmanuel Vadot2022-10-261-0/+1
| | | | | | Useful to have a pager in it. Differential Revision: https://reviews.freebsd.org/D36231
* MFV: less v608Xin LI2022-09-061-0/+4
| | | | | Relnotes: yes MFC after: 2 weeks
* ncurses: chase dependency changes in the source treeBaptiste Daroussin2021-10-041-1/+1
| | | | Differential Revision: https://reviews.freebsd.org/D32098
* Fix buildXin LI2021-07-181-1/+2
| | | | MFC after: 2 weeks
* less: upgrade to v590.Xin LI2021-07-182-2/+6
| | | | MFC after: 2 weeks
* less: upgrade to v581.Xin LI2021-04-191-1/+12
| | | | MFC after: 2 weeks
* MFV r349535: less v551.Xin LI2019-06-291-1/+7
| | | | | | | | MFC after: 2 weeks Relnotes: yes Notes: svn path=/head/; revision=349549
* MFV r326007: less v529.Xin LI2017-11-201-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=326010
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* MFV r317581: less v491.Xin LI2017-05-051-0/+5
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=317829
* rename zstless into zstdless to be consistent with other zstdcommandsBaptiste Daroussin2017-04-151-1/+1
| | | | Notes: svn path=/head/; revision=316984
* Add a zstdless equivalent to zless, bzless xzlessBaptiste Daroussin2017-04-152-1/+5
| | | | Notes: svn path=/head/; revision=316979
* Adopt SRCTOP in usr.binWarner Losh2017-03-121-2/+2
| | | | | | | | | | | | Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo over ${.CURDIR}/../foo for paths in Makefiles. Differential Revision: https://reviews.freebsd.org/D9932 Sponsored by: Netflix Silence on: arch@ (twice) Notes: svn path=/head/; revision=315170
* - Add support for zip to lesspipe.shAlex Kozlov2016-01-151-0/+3
| | | | | | | Approved by: des Notes: svn path=/head/; revision=294111
* MFV r293125: less v481.Xin LI2016-01-051-0/+5
| | | | | | | | MFC after: 1 month Relnotes: yes Notes: svn path=/head/; revision=293190
* new dependsSimon J. Gerraty2015-06-161-1/+0
| | | | Notes: svn path=/head/; revision=284481
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-192-3/+3
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync with HEAD.David E. O'Brien2013-02-082-1/+13
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ Sync from headSimon J. Gerraty2012-11-041-9/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | | Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-07-171-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=268804
* | | Note that the manual page of less(1) says:Xin LI2012-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 Notes: svn path=/head/; revision=243834
* | | Fix build with clang: properly terminate comment even in #if 0 blocks.Xin LI2012-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Submitted by: dim Notes: svn path=/head/; revision=242618
* | | MFV: less v453.Xin LI2012-11-041-0/+12
| |/ |/| | | | | Notes: svn path=/head/; revision=242584
* | MFV: less v449.Xin LI2012-06-261-9/+3
|/ | | | Notes: svn path=/head/; revision=237613
* Regenerated with latest configure script.Xin LI2011-05-101-0/+6
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=221718
* Import of liblzma, xz, xzdec, lzmainfo from vendor branchMartin Matuska2010-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 Notes: svn path=/head/; revision=207842
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+1
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Update less to v436. This is considered as a bugfix release from vendor.Xin LI2009-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) Notes: svn path=/head/; revision=195941
* Resolve conflicts; Update defines.h to reflect latest change.Xin LI2007-11-161-0/+9
| | | | Notes: svn path=/head/; revision=173685
* Regen.Xin LI2007-06-041-23/+26
| | | | Notes: svn path=/head/; revision=170260
* Fix handling of filenames containing whitespace.Lukas Ertl2007-05-241-3/+3
| | | | | | | | PR: bin/112860 MFC in: 3 days Notes: svn path=/head/; revision=169956