DragonFly bugs List (threaded) for 2009-04
DragonFly BSD
DragonFly bugs List (threaded) for 2009-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue1341] printenv(1): don't allow '=' in name


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Apr 2009 08:24:10 -0700 (PDT)

:After the recent libc changes, we no more allow environmental variables to =
:have
:an '=3D' character in their name. The printenv(1) utility isn't aware of th=
:at, so
:it embarrasses itself, along with misleading the user:
:..
:
:What do you think ? Ship it ?
:
:Cheers,
:Stathis

    No, it definitely should not exit if it is asked to display an
    environment variable with '=' in it.  It could print a warning
    to stderr, though, but I don't think it's necessary.  If the
    environment variable isn't supposed to exist then it won't find
    it.  If the environment variable does exist it is not printenv's
    job to check whether it is legal or not.

						-Matt



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]