Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 15:12:53 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        "Scheithauer, Lars (FH)" <Lars.Scheithauer@fh-heidelberg.de>
Cc:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, freebsd-jail@freebsd.org
Subject:   Re: AW: AW: Networking from jail - errata
Message-ID:  <4B02AF65.6080007@quip.cz>
In-Reply-To: <26040005B7F3AA41A0345BCE386CA09701C62A80@FHCLUSRV-EX.dcs.fh-heidelberg.de>
References:  <26040005B7F3AA41A0345BCE386CA09701C62A79@FHCLUSRV-EX.dcs.fh-heidelberg.de><26040005B7F3AA41A0345BCE386CA09701C62A7A@FHCLUSRV-EX.dcs.fh-heidelberg.de>	<20091117103601.G37440@maildrop.int.zabbadoz.net>	<26040005B7F3AA41A0345BCE386CA09701C62A7D@FHCLUSRV-EX.dcs.fh-heidelberg.de>	<20091117112535.L37440@maildrop.int.zabbadoz.net> <26040005B7F3AA41A0345BCE386CA09701C62A80@FHCLUSRV-EX.dcs.fh-heidelberg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Scheithauer, Lars (FH) wrote:
> Hi Bjoern,
>
> I did, but the error was somewhere else. I set the proxy through
> 	set http_proxy="http://proxy.example.com:8080"
> while the correct version would be
> 	setenv http_proxy http://proxy.example.com:8080
>
> In both cases, "echo $http_proxy" returns the correct entry. Could you explain the difference between set and setenv?

The differenc is, that 'set' is for shell variables (in scope of current 
shell) and 'setenv' is for environment variables.

If you use 'set' and then try to print the value from forked shell 
script, it will be empty. If you use 'setenv', the shell script will 
print the value.

See 'man tcsh' (if you are using tcsh as your login shell)

Miroslav Lachman



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