Re: Setting HTTP_PROXY for all users

From: Ceri Davies <ceri_at_submonkey.net>
Date: Wed, 31 Aug 2005 15:54:45 +0100
On Wed, Aug 31, 2005 at 04:53:19PM +0300, Giorgos Keramidas wrote:
> ## Thread moved here from -questions.
> 
> On 2005-08-31 14:41, Matthew Seaman <m.seaman_at_infracaninophile.co.uk> wrote:
> >On Tue, Aug 30, 2005 at 04:32:42PM +0100, Ceri Davies wrote:
> >> I want to set HTTP_PROXY for all users on my machine, and I'd like to do
> >> it in /etc/login.conf as then it's only in one place.
> >>
> >> However, I need to put a colon in for the port number and can't see how
> >> to escape it so that the entry doesn't get chopped off halfway through.
> >> None of these work:
> >>
> >> 	:setenv=HTTP_PROXY=www-cache.private.submonkey.net:3128:\
> >>
> >> 	:setenv=HTTP_PROXY=www-cache.private.submonkey.net\:3128:\
> >>
> >> 	:setenv=HTTP_PROXY="www-cache.private.submonkey.net:3128":\
> >>
> >> Is there a way to do this, or should I just throw this in /etc/profile
> >> and /etc/csh.cshrc instead?
> >
> > \c generates a colon.  Documented in getcap(3)
> 
> Hmmm, I think this should also be documented in the login.conf file,
> with a comment and a pointer to getcap(3) manpage.  Any objections to
> the following patch?

Looks good.

Ceri
-- 
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.			  -- Einstein (attrib.)

Received on Wed Aug 31 2005 - 12:54:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC