bin/132182: uname(1) uses UNAME_<flag> variables even if those are empty

kib at FreeBSD.org kib at FreeBSD.org
Sun Apr 18 20:59:32 UTC 2010


Synopsis: uname(1) uses UNAME_<flag> variables even if those are empty

State-Changed-From-To: open->closed
State-Changed-By: kib
State-Changed-When: Sun Apr 18 20:57:40 UTC 2010
State-Changed-Why: 
I think that uname(1) behaviour is right. There is no reason to special-case
any value for the environment variables. Somebody might really want the
empty values for whatever reason.

Your case is better handled by usual trick of wrapping the invocation
of the program with env(1), where you can set or _unset_ any environment
variable.

http://www.freebsd.org/cgi/query-pr.cgi?pr=132182


More information about the freebsd-bugs mailing list