aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/which
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
* which: Use size_t instead of ssize_t for pathlenCollin Funk2024-04-051-1/+1
| | | | | | | | | | | | | The "pathlen" variable is the return value of strlen(3) and is then passed as an argument to malloc(3) and memcpy(3). The size_t type matches the prototype for these functions. The size_t type is unsigned so it can fit larger $PATH values than ssize_t. However, in practice ssize_t should be larger enough so this change is just for clarity. Signed-off-by: Collin Funk <collin.funk1@gmail.com> MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/1113
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-271-1/+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$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .c patternWarner Losh2023-08-161-3/+0
| | | | Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* Fix typo and environment variable macroFernando ApesteguĂ­a2020-09-241-2/+2
| | | | | | | | | | Follow up for r366119 Reported by: xtouqh@mm.st Differential Revision: https://reviews.freebsd.org/D26182 Notes: svn path=/head/; revision=366122
* which(1): Add EXAMPLES section to manpageFernando ApesteguĂ­a2020-09-241-1/+43
| | | | | | | | | | | Add EXAMPLES section showing the use of -a and -s flags and how which(1) treates duplicates. Approved by: manpages (gbe@) Differential Revision: https://reviews.freebsd.org/D26182 Notes: svn path=/head/; revision=366119
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. 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. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* which(1): sort #includesEnji Cooper2017-04-191-2/+1
| | | | | | | | | | No functional change [intended]. MFC after: 7 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317161
* Clean up trailing whitespaceEnji Cooper2017-04-191-2/+2
| | | | | | | | | | No functional changes MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317160
* 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-191-2/+2
| |\ | |/ |/| | | 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
* | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-2/+2
|/ | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* Mark global functions and/or variables in which(1) static where possible.Ed Schouten2011-11-061-2/+2
| | | | | | | This allows compilers and static analyzers to more thorough analysis. Notes: svn path=/head/; revision=227245
* Refine the previous revision.Ruslan Ermilov2006-12-131-1/+1
| | | | Notes: svn path=/head/; revision=165169
* "which -s" will return 0 only if all executables were found, not "any".Ruslan Ermilov2006-12-131-2/+2
| | | | Notes: svn path=/head/; revision=165168
* Require at least one argument.Ruslan Ermilov2005-02-102-10/+6
| | | | Notes: svn path=/head/; revision=141656
* Sort sections.Ruslan Ermilov2005-01-181-5/+5
| | | | Notes: svn path=/head/; revision=140420
* Handle relative and absolute pathnames (anything with a `/' in it) in the sameTim J. Robbins2002-06-301-1/+1
| | | | | | | | | way as execve(2), and the old perl which(1). PR: 35718 Notes: svn path=/head/; revision=99120
* Treat empty PATH elements as "." for tradition and consistency with theTim J. Robbins2002-06-301-1/+3
| | | | | | | | | old Perl which(1) script. PR: 35719 Notes: svn path=/head/; revision=99118
* Give a C rewriter the necessary credit.Ruslan Ermilov2002-06-211-3/+9
| | | | | | | Requested by: Daniel Papasian <dpapasia@andrew.cmu.edu> Notes: svn path=/head/; revision=98543
* which(1) was once a Perl script.Ruslan Ermilov2002-05-301-1/+0
| | | | Notes: svn path=/head/; revision=97565
* Use `The .Nm utility'Philippe Charnier2002-04-201-1/+3
| | | | Notes: svn path=/head/; revision=95124
* Off by one error in checking max file name length.Wolfram Schneider2002-03-091-1/+1
| | | | Notes: svn path=/head/; revision=91945
* Use FBSDID(), WARNS=2 fix.Mark Murray2001-12-111-3/+5
| | | | | | | Mkaefile does not use WARNS=2 beacuse this will be made default. Notes: svn path=/head/; revision=87678
* Spell "FreeBSD" with "F" and "BSD" in uppercase.Ruslan Ermilov2001-08-131-1/+1
| | | | Notes: svn path=/head/; revision=81588
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Get rid of the old version.Brian Feldman2000-08-291-60/+0
| | | | Notes: svn path=/head/; revision=65227
* Use a C version of which(1).Brian Feldman2000-08-292-8/+146
| | | | | | | | Submitted by: Dan Papasian <bugg@bugg.strangled.net> Reviewed by: jhb Notes: svn path=/head/; revision=65226
* Add a missing .El macro.Sheldon Hearn2000-01-141-0/+1
| | | | Notes: svn path=/head/; revision=55963
* Correct some hard sentence breaks. Only those surrounding the previousSheldon Hearn1999-09-141-2/+2
| | | | | | | | | | | commit and those which cause ugly nroff output have been fixed, since the purpose of the style guideline which they contravene is to reduce the sizes of deltas. Reported by: bde Notes: svn path=/head/; revision=51275
* Improve shell documentation:Sheldon Hearn1999-09-081-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Consistently misspell built-in as builtin. * Add a builtin(1) manpage and create builtin(1) MLINKS for all shell builtin commands for which no standalone utility exists. These MLINKS replace those that were created for csh(1). * Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages, as well as to the manpages of standalone utilities which are supported as shell builtin commands in at least one of the shells. In such manpages, explain that similar functionality may be provided as a shell builtin command. * Improve sh(1)'s description of the cd builtin command. Csh(1) already describes it adequately. Replace the cd(1) manpage with a builtin(1) MLINKS link. * Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use Ic instead of Xr for shell builtin commands. * Undo English contractions. Reviewed by: mpp, rgrimes Notes: svn path=/head/; revision=51090
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* Added myself as maintainer.Wolfram Schneider1999-02-091-0/+4
| | | | Notes: svn path=/head/; revision=43805
* Sort SEE ALSO section alphabetically.Joseph Koshy1998-05-221-3/+3
| | | | Notes: svn path=/head/; revision=36301
* Add cross references for find(1), locate(1), whereis(1) and which(1).Joseph Koshy1998-05-151-1/+4
| | | | | | | | Submitted by: Josh Gillam <josh@quick.net> PR: docs/6642 Notes: svn path=/head/; revision=36057
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.Philippe Charnier1998-03-231-2/+2
| | | | Notes: svn path=/head/; revision=34801
* Search for proper executables, ignore directoriesWolfgang Helbig1998-02-011-3/+3
| | | | Notes: svn path=/head/; revision=32994
* Don't ignore empty components of $PATH, i. e. colon at the beginning,Wolfgang Helbig1998-01-021-1/+6
| | | | | | | | | the end or two successive colons. Reviewed and improved by wosch. Notes: svn path=/head/; revision=32188