My understanding is that all the files in:
   /etc/profile.d
get read into a shell that is started as "login",
which /cygwin.bat does. This should include tinyos.sh
which is created there when a full TOS install is done.

However it's better to use $HOME/.bashrc for personal settings
to avoid conflict with re-installs.

One little tip, if you are experimenting with a script to set
variables you need to "source" it into your shell by typing:
        "source script.sh"   or   ". script.sh"
Otherwise it is executed in s sub-shell and all settings are
tossed out with the bath water.

MS



aldo wrote:
> Hello,
> 
> Does anyone know how to configure environmental variables automatically 
> when cygwin starts?
> 
> I'm trying to create a "tinyos.sh" file in /etc/profile.d with the 
> variables and cygwin returns correctly when I write $printenv MAKERULES 
> but...doesn't work when i do $make on an application.
> 
> Thank you in advance.
> 
> Aldo
> -- 
> aldo
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to