Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2018 21:39:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 225434] [patch] Treat set but empty environment variables as unset in /usr/libexec/phttpget
Message-ID:  <bug-225434-8-PAaTfK8gpP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225434-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225434-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225434

--- Comment #2 from Vasil Dimov <vd@FreeBSD.org> ---
(In reply to Conrad Meyer from comment #1)

Conrad, you got it wrong, just "http_proxy" needs to be set to an empty string
to trigger the bug (with HTTP_PROXY being irrelevant).

> Also unclear why a shell script should export an empty string value instead of not exporting it.

Because it may contain http_proxy=${http_proxy:-""} which is a common idiom.

root# http_proxy= portsnap --debug fetch
...
phttpget: host = , port = 3128: hostname nor servname provided, or not known
...

-- 
You are receiving this mail because:
You are the assignee for the bug.


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