diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2019-11-07 17:14:59 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2019-11-07 17:14:59 +0000 |
commit | 5e5ceb11cbac73319056c37026d276ccf265b190 (patch) | |
tree | 3ada091d6cdfd3ec1e6a6c085b23146293a6fe93 /usr.bin/env/env.1 | |
parent | 36712a94975f5bd0d26c85377283b49a2369c82f (diff) | |
download | src-5e5ceb11cbac73319056c37026d276ccf265b190.tar.gz src-5e5ceb11cbac73319056c37026d276ccf265b190.zip |
Add -0 option to ENV(1)
With the -0 option added to ENV(1), some ports will no longer require genv
from sysutils/coreutils.
Reviewed by: kevans (prior version), swills
Approved by: bcr (manpages), imp
Differential Revision: https://reviews.freebsd.org/D22230
Notes
Notes:
svn path=/head/; revision=354450
Diffstat (limited to 'usr.bin/env/env.1')
-rw-r--r-- | usr.bin/env/env.1 | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/usr.bin/env/env.1 b/usr.bin/env/env.1 index 943ce7341bf7..bb3e4e719526 100644 --- a/usr.bin/env/env.1 +++ b/usr.bin/env/env.1 @@ -31,7 +31,7 @@ .\" From FreeBSD: src/usr.bin/printenv/printenv.1,v 1.17 2002/11/26 17:33:35 ru Exp .\" $FreeBSD$ .\" -.Dd April 17, 2008 +.Dd November 7, 2019 .Dt ENV 1 .Os .Sh NAME @@ -39,7 +39,7 @@ .Nd set environment and execute command, or print environment .Sh SYNOPSIS .Nm -.Op Fl iv +.Op Fl 0iv .Op Fl P Ar altpath .Op Fl S Ar string .Op Fl u Ar name @@ -64,6 +64,8 @@ is executed. .Pp The options are as follows: .Bl -tag -width indent +.It Fl 0 +End each output line with NUL, not newline. .It Fl i Execute the .Ar utility @@ -130,8 +132,15 @@ If no .Ar utility is specified, .Nm -prints out the names and values -of the variables in the environment, with one name/value pair per line. +prints out the names and values of the variables in the environment. +Each name/value pair is separated by a new line unless +.Fl 0 +is specified, in which case name/value pairs are separated by NUL. +Both +.Fl 0 +and +.Ar utility +may not be specified together. .\" .Ss Details of Fl S \&Ss (split-string) processing The processing of the |