Disabling 'http_proxy' not working as expected (was: Transport error: Server refuses to fullfil the request)

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri May 16 09:24:29 BST 2008


>>>>> "Ben" == Ben Finney <bignose+hates-spam at benfinney.id.au> writes:

    Ben> Ben Finney <bignose+hates-spam at benfinney.id.au> writes:
    >> In a later message in this thread, I demonstrated the same problem
    >> occuring with an empty 'http_proxy' veriable.

    Ben> Except apparently I didn't.

    Ben> Running

    Ben>     $ http_proxy= bzr -Dhttp -Dtransport branch http://people.debian.org/~mvo/bzr/python-apt/python-apt--debian-sid/

    Ben> the log shows that it's *still* using my proxy.

    Ben> If instead I run

    Ben>     $ unset http_proxy
    Ben>     $ export http_proxy
    Ben>     $ bzr -Dhttp -Dtransport branch http://people.debian.org/~mvo/bzr/python-apt/python-apt--debian-sid/

    Ben> the log then shows the proxy is not used at all.

    Ben> Why would the first form not have the effect of "don't use the proxy",
    Ben> when the second form does? Every program I've ever needed to set or
    Ben> disable an environment variable, setting it on the commandline as in
    Ben> the first form works fine. Why is bzr behaving differently to this?

vila:~ :) $ myvar=foo
vila:~ :) $ export myvar
vila:~ :) $ echo $myvar
foo
vila:~ :) $ myvar=bar echo $myvar
foo
vila:~ :) $ unset myvar
vila:~ :) $ export myvar
vila:~ :) $ echo $myvar

vila:~ :) $ myvar=bar echo $myvar

vila:~ :) $ 

Looks like echo has the same problem... or not ?

      Vincent




More information about the bazaar mailing list