Tomas wrote:
I cant set environment variable on OpenBSD 3.8. I issue command env
testvar=var and I get printout with all the environment variables:
PS1=#
...
testvar=var
And after that I issue command env and I get printout without my testvar:
PS1=#
...
What could I be doing wrong?
env(1) only affects the environment for the command it is told to run
(if any). It does not alter the current environment. This may not be
obvious from ``man env''.
man ksh
man csh
...
will tell you how to modify the current environment. Don't forget to export.
e.g. for ksh/sh:
export testvar=var
/Alexander