]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r235297, r235316:
authormdf <mdf@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 May 2012 20:13:24 +0000 (20:13 +0000)
committermdf <mdf@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 May 2012 20:13:24 +0000 (20:13 +0000)
commitf1e451780052f19facb9981676f46441cee781e5
treea0156314bbe6ee857210337b2bc30090f008679e
parentb2178dc2c83b9f6d126424488caff75fe770ce22
MFC r235297, r235316:

Add a -v and -N option to kenv(1), so it can be more easily used in
scripts the way sysctl(8) is.  The -N option, like in sysctl(8),
displays only the kenv names, not their values.  The -v option prints an
individual kenv variable name with its value as name="value".  This is
the inverse of sysctl(8)'s -n flag, since the default behaviour of
kenv(1) is already like sysctl(8) -n.

git-svn-id: svn://svn.freebsd.org/base/stable/9@236118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/kenv/kenv.1
bin/kenv/kenv.c