History log of /freebsd-current/usr.bin/env/env.1
Revision Date Author Comments
# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

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


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 55deb0a5 02-Mar-2021 Andrew Gierth <andrew@tao146.riddles.org.uk>

service(8): use an environment more consistent with init(8)

init(8) sets the "daemon" login class without specifying a pw
entry (so no substitutions are done on the variables). service(8)'s
use of env -L had the effect of specifying root's pw entry, with two
effects: getpwnam and getpwuid are being called, which may not be
entirely safe depending on what nsswitch is up to and what stage of
boot we are at, and substitutions would have been done.

Fix by teaching env(8) to allow -L -/classname to set the class
environment with no pw entry at all specified, and use it in
service(8).

PR: 253959


# a4848c10 11-Nov-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

Document in the synopsis that -0 cannot be used with the utility argument


# beb71006 24-Apr-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

Fix invalid use of macros and two typos

It turns out that currently mandoc(1) is not handling Fl in Ss
correctly (maybe it never was). Let's just replace "Fl S \&Ss ..."
with "-S ...". After all, this subsection title is stylized anyway, so Fl
is not that helpful.

MFC after: 2 weeks


# 85c8521e 04-Feb-2020 Kyle Evans <kevans@FreeBSD.org>

env(1): grow -L user/class and -U user/class options

This allows one to set the environment of the specified user either from
login.conf alone (-L) or both login.conf and ~/.login_conf if present (-U).

This is a supporting feature to allow service(8) to pull in the environment
of the "daemon" class before invoking the rc script.

This is a part of D21481.

Submitted by: Andrew Gierth < andrew_tao173.riddles.org.uk>


# 5e5ceb11 07-Nov-2019 Joseph Mingrone <jrm@FreeBSD.org>

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


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

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


# 95a27780 11-Feb-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Escape Ss to avoid confusion by mdoc parser with the Ss macro

Reported by: make manlint
MFC after: 2 days


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

Remove the advertising clause from UCB copyrighted files in usr.bin. This
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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 3f8c1392 06-May-2008 Garance A Drosehn <gad@FreeBSD.org>

Update the date on the man-page to reflect the date that the '-u name'
change was committed, instead of when I had first started writing it...


# a414225d 17-Apr-2008 Garance A Drosehn <gad@FreeBSD.org>

Add the '-u name' option to the env command, which will completely unset
the given variable name (removing it from the environment, instead of
just setting it to a null value).

PR: bin/65649
MFC after: 2 weeks


# 5dea8a44 22-Jun-2005 Ruslan Ermilov <ru@FreeBSD.org>

Tidy up the markup.

Approved by: re (blanket)
OK'ed by: gad


# 68ef2072 21-Jun-2005 Garance A Drosehn <gad@FreeBSD.org>

Put in a more descriptive heading for the `env' command.

Noticed by: Matthew D Fuller
Approved by: re (blanket `env')


# 2f739d3c 21-Jun-2005 Garance A Drosehn <gad@FreeBSD.org>

Undo r1.14 to env.c. While it is unusual for environment variables to
start with a '/', they are more supported (by POSIX and SUSv3) than
filenames which have an '=' in them.

Noticed by: tjr
Approved by: re (blanket `env')


# 8fbe7ebf 19-Jun-2005 Garance A Drosehn <gad@FreeBSD.org>

Add the '-S' and '-P' options. The '-S' option can be used to split
apart a string, and supports some text substitutions. This can be
used to provide all the flexibility (and more!) that was lost by recent
changes to how the kernel parses #!-lines in shell scripts.

The '-P' option provides a way to specify an alternate set of directories
to use when searching for the 'utility' program to run. This way you can
be sure what directories are used for that search, without changing the
value of PATH that the user has set. Note that on FreeBSD 6.0, this
option is worthless unless the '-S' option is also used.

Approved by: re (blanket `env')


# a866e170 17-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Added the EXIT STATUS section where appropriate.


# 607e48e7 19-May-2004 Ruslan Ermilov <ru@FreeBSD.org>

Language and markup polishing.


# ec6001d9 28-Feb-2004 Jens Schweikhardt <schweikh@FreeBSD.org>

Fix grammar bogon.


# 52964a40 02-Nov-2003 Ruslan Ermilov <ru@FreeBSD.org>

Removed (after the env(1)/printenv(1) split) extraneous arguments
to the .Nm macro.


# 14f566d3 01-Jun-2003 Tim J. Robbins <tjr@FreeBSD.org>

Split the env(1) manpage off from printenv(1); there is not much point
in keeping them together. Mention that printenv is obsolescent.