aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/printenv
Commit message (Collapse)AuthorAgeFilesLines
* Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`.Mariusz Zaborski2018-06-191-1/+1
| | | | | | | No functional change intended. Notes: svn path=/head/; revision=335395
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | 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-282-2/+2
| | | | | | | | | | | | 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
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-11-131-0/+1
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308606
* Capsicumize some trivial stdio programsConrad Meyer2016-11-081-0/+5
| | | | | | | | | | | | Trivially capsicumize some simple programs that just interact with stdio. This list of programs uses 'pledge("stdio")' in OpenBSD. No objection from: allanjude, emaste, oshogbo Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D8307 Notes: svn path=/head/; revision=308432
* Chase a cornercase in printenv and sync its behaviour with builtin'sPietro Cerutti2016-10-191-2/+2
| | | | | | | | | | | | The cornercase is when printenv is passed a parameter in the form VAR=val, where VAR=val exists in the environment. In this case, printenv would print a spurious newline and returns 0. Approved by: cognet MFC after: 1 week Notes: svn path=/head/; revision=307638
* 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
| * 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
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-112-8/+0
| | | | | | | | | | | | 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
* Define extern **environ in global scope instead of in function.Xin LI2009-02-211-2/+2
| | | | Notes: svn path=/head/; revision=188889
* Simplify.Ruslan Ermilov2006-12-261-1/+1
| | | | Notes: svn path=/head/; revision=165553
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Split the env(1) manpage off from printenv(1); there is not much pointTim J. Robbins2003-06-012-93/+17
| | | | | | | in keeping them together. Mention that printenv is obsolescent. Notes: svn path=/head/; revision=115603
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-11-261-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107276
* ANSIify function definitions.David Malone2002-09-041-6/+4
| | | | | | | | | | | | 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
* Document the fairly obvious effects of the PATH environment variable.Tim J. Robbins2002-06-281-0/+10
| | | | Notes: svn path=/head/; revision=98969
* Discourage use of env(1)'s "-" flag by moving its description to theTim J. Robbins2002-06-281-5/+7
| | | | | | | Compatibility section of the manual page. Notes: svn path=/head/; revision=98968
* Indicate that env(1) allows you to supply arguments to the utility itTim J. Robbins2002-06-191-7/+7
| | | | | | | | | | | | | executes in the usage() message and manual page. Use "utility" instead of "command" in both places to emphasise that shell builtins etc. will not work, and to be consistent with the terminology used by POSIX. PR: 39210 Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com> MFC after: 1 week Notes: svn path=/head/; revision=98418
* Use `The .Nm utility'Philippe Charnier2002-04-201-7/+11
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92921
* Use new ID scheme.Mike Barcroft2002-02-211-6/+15
| | | | | | | | | | Fix env(1)'s exit status to conform with SUSv3. Submitted by: Tim Robbins <tim@robbins.dropbear.id.au> MFC after: 2 weeks Notes: svn path=/head/; revision=91004
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-12-102-6/+7
| | | | | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF. Notes: svn path=/head/; revision=87628
* Warnc cleanups. Add FreeBSD IDs.David Malone2001-12-032-2/+8
| | | | Notes: svn path=/head/; revision=87294
* mdoc(7) police: fixed formatting.Ruslan Ermilov2001-07-051-8/+10
| | | | Notes: svn path=/head/; revision=79278
* Mention how env(1) can be used with the "#!" construct.Dima Dorfman2001-05-301-0/+19
| | | | | | | | PR: 27690 Submitted by: Mike Meyer <mwm@mired.org> Notes: svn path=/head/; revision=77453
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-1/+1
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68963
* The printenv(1) command is now a builtin(1) in csh(1).Sheldon Hearn2000-05-091-0/+7
| | | | Notes: svn path=/head/; revision=60262
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add ``-i'' option, which is the same as ``-''. The -i option is theSheldon Hearn1999-08-271-6/+16
| | | | | | | | | | | | recommended option in the manpage, but the - option remains for backward compatibility and is documented as such. PR: 13363 Reported by: James Howard <howardjp@wam.umd.edu> Reviewed by: bde Notes: svn path=/head/; revision=50444
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* environmental -> environment.Philippe Charnier1997-08-041-1/+1
| | | | Notes: svn path=/head/; revision=27886
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* This commit was generated by cvs2svn to compensate for changes in r23690,Peter Wemm1997-03-111-1/+2
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=23691
| * Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.Peter Wemm1997-03-111-0/+100
| | | | Notes: svn path=/vendor/CSRG/dist/; revision=23690
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+203
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590