[Bug 225434] [patch] Treat set but empty environment variables as unset in /usr/libexec/phttpget

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 25 21:39:27 UTC 2018


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

--- Comment #2 from Vasil Dimov <vd at 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.


More information about the freebsd-bugs mailing list