AW: AW: Networking from jail - errata

Miroslav Lachman 000.fbsd at quip.cz
Tue Nov 17 14:12:58 UTC 2009


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


More information about the freebsd-jail mailing list