On 09/07/2010 02:09 PM, Bruno Haible wrote:
Eric Blake wrote:
env is required by POSIX, but it is not (yet) listed in the list of
programs safe to use in GNU Coding Standards
And 'env' would not help much, because its output can easily be confused
by environment variable values that contain newlines:
$ foo='not
POSIXLY_CORRECT=1'
$ export foo
$ env | grep POSIXLY_CORRECT
POSIXLY_CORRECT=1
P.S. This is precisely why GNU coreutils recently added the -0/--null
option to env.
--
Eric Blake ebl...@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org