Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2007 23:06:39 -0400
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        Andrey Chernov <ache@FreeBSD.org>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdlib getenv.3 getenv.c putenv.c  setenv.c
Message-ID:  <p06240803c25c5edc05be@[128.113.24.47]>
In-Reply-To: <20070430184854.GA87050@nagual.pp.ru>
References:  <200704301656.l3UGuIqf048148@repoman.freebsd.org> <20070430183624.GA73050@tirith.brixandersen.dk> <20070430184854.GA87050@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:48 PM +0400 4/30/07, Andrey Chernov wrote:
>On Mon, Apr 30, 2007 at 08:36:24PM +0200, Henrik Brix Andersen wrote:
>  >
>>  This is the output of the same test on my RELENG_6 box:
>>
>>  $ env -vi foo=bar env
>>  #env clearing environ
>>  #env setenv:    foo=bar
>>  #env executing: env
>>  #env    arg[0]= 'env'
>>  foo=bar
>
>Thanx for the report, but please be patient a bit, work in the progress
>and fix already planned soon.
>To the matter: env incorrectly calls setenv("name=...", ...) which is
>POSIX violation:
>
>"The setenv( ) function shall fail if:
>[EINVAL] The name argument is a null pointer, points to an empty
>string, or points to a string containing an '=' character."

I can fix the 'env' command, if you want...
(not sure I can get to it tonight, but I'll see)

-- 
Garance Alistair Drosehn     =               drosehn@rpi.edu
Senior Systems Programmer               or   gad@FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06240803c25c5edc05be>