On 06/09/08, Jim Walker wrote:
> Raymond Xiong wrote:
> >When I used the following way to test my packaging code for 
> >Erlang, I hit an unexpected issue. 
> >
> >  $ env - <path_to_nightly> <env_file>
> >
> >Erlang source code contains .c files and .erl files. .c files
> >are mainly used to compile VM and utilities, which then are
> >used to compile .erl files.
> >
> >Unfortunately those utilities(Erlang runtime actually) requires
> >HOME directory, but that is unset by "env -"
> >
> >I am trying to solve this issue by defining "HOME=/tmp" in 
> >Erlang subdir's Makefile.sfw. But since this is a general 
> >issue caused by "env -" usage, I wonder if anyone has better
> >suggestion for this? I think we should support "env -" usage,
> >right? 
> >
> 
> You should be able to add any variable to your "new" environment
> by doing something like this:
> 
> % env - HOME=<path_to_home> <path_to_nightly> <env_file> &
> 
> For example:
> 
> % env - HOME=/export/home/xyz /opt/onbld/bin/nightly sfw-developer.sh &

The issue with the above usage is that it changes command line interface.
How the others know they should set HOME dir now? I can document this, 
but I am afraid that won't be accepted.

Thanks,
Raymond

Reply via email to