aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/look
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* look(1): Correct the example's descriptionRaghu Ranganathan2023-12-111-1/+1
| | | | | | | | | Remove an extra 'e' in the example command. It is a prefix, not a typo. This is from the Advanced UNIX Programming Course (Fall’23) at NTHU. MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/913
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-9/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-274-8/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* look(1): Add EXAMPLES sectionFernando ApesteguĂ­a2020-12-291-1/+30
| | | | | | | | | | | | | | | | | | | Add two simple examples. In this case I opted to show a small portion of the output since it helps to understand what the tool does. It shows the use of the -t flag too. PR: Submitted by: Reported by: Reviewed by: gbe@ Approved by: manpages (bcr@) Obtained from: MFC after: MFH: Relnotes: Security: Sponsored by: Differential Revision: https://reviews.freebsd.org/D27543
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-202-0/+4
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-283-3/+3
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Fix a ton of speelling errorsEitan Adler2015-10-211-1/+1
| | | | | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337 Notes: svn path=/head/; revision=289677
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 head from 7/28Simon J. Gerraty2014-08-192-4/+22
| |\ | |/ |/| | | 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 FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | look: implement long optionsEitan Adler2014-07-042-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | gentoo has "util-linux 2.24.1" with long options. Other distributions have similar. usage() is intentionally unchanged to keep it short and sweet Reviewed by: jmg Discussed with: adrian, jilles Notes: svn path=/head/; revision=268242
* | look(1): add compability with other implementations.Eitan Adler2014-05-112-1/+8
|/ | | | | | | | On other implementations 'look -a' uses an alternate dictionary. Since we don't have one, just ignore it. Notes: svn path=/head/; revision=265865
* Add missing static keywords to look(1)Ed Schouten2011-11-061-13/+13
| | | | Notes: svn path=/head/; revision=227171
* Sort header file names.Ed Schouten2011-10-171-1/+1
| | | | | | | Spotted by: des Notes: svn path=/head/; revision=226468
* Add missing #include.Ed Schouten2011-10-161-0/+1
| | | | | | | Note to myself: don't write patches while watching a movie. Notes: svn path=/head/; revision=226445
* Don't cast SIZE_T_MAX to off_t.Ed Schouten2011-10-161-1/+1
| | | | | | | | | | | | I focused so much on the 32-bits case where we have to cast SIZE_T_MAX up in size, that I forgot about the 64-bits case, where off_t and size_t are equal in size. Simply cast both numbers to uintmax_t, as we can assume st_size is never negative. Reported by: cperciva Notes: svn path=/head/; revision=226444
* Build look(1) with WARNS=6.Ed Schouten2011-10-142-3/+1
| | | | Notes: svn path=/head/; revision=226359
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-113-12/+2
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+3
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Don't try to mmap the contents of empty files. This behaviour was harmlessColin Percival2009-08-261-0/+4
| | | | | | | | | | | | | | prior to r195693, since historical behaviour of mmap(2) was to silently ignore length-zero mmap requests; but mmap now returns EINVAL, which caused look(1) to emit an error message and fail. Among other things, this makes `freebsd-update fetch` on a newly installed 8.0-BETA3 system print bogus warning messages. MFC after: 3 days Notes: svn path=/head/; revision=196558
* Remove break after return.Stefan Farfeleder2006-07-181-2/+0
| | | | Notes: svn path=/head/; revision=160467
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Sort sections.Tim J. Robbins2004-07-191-3/+3
| | | | Notes: svn path=/head/; revision=132397
* Move exit status information into a DIAGNOSTICS section. Add an ENVIRONMENTTim J. Robbins2004-07-191-3/+15
| | | | | | | | section. Re-add a sentence from the BUGS section that went missing in the previous commit. Notes: svn path=/head/; revision=132396
* Add support for multibyte characters. While here, fix a longstanding bug inTim J. Robbins2004-07-192-58/+67
| | | | | | | | the implementation of the -d option: we were skipping too many characters when a non-alphanumeric character was encountered. Notes: svn path=/head/; revision=132394
* Point out in the BUGS section that look expects input files to haveTim J. Robbins2004-07-191-0/+7
| | | | | | | been sorted with LC_COLLATE=C. Notes: svn path=/head/; revision=132393
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-171-1/+5
| | | | Notes: svn path=/head/; revision=132277
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131491
* Introduce options definition the standard way.Philippe Charnier2003-06-091-2/+2
| | | | Notes: svn path=/head/; revision=116112
* ANSIify function definitions.David Malone2002-09-041-18/+11
| | | | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 Notes: svn path=/head/; revision=102944
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* Fix a const-char vs char issue.Mark Murray2002-04-281-1/+3
| | | | Notes: svn path=/head/; revision=95646
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-221-6/+6
| | | | Notes: svn path=/head/; revision=92920
* Warns cleanup - not ready for WARNS=2 yet.David Malone2001-12-031-2/+3
| | | | Notes: svn path=/head/; revision=87288
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.Ruslan Ermilov2001-02-131-1/+1
| | | | Notes: svn path=/head/; revision=72432