[Tinyos-help] environmental variables in shell script
Axl Schreiber
axl.schreiber at imms.de
Thu Oct 2 05:07:29 PDT 2008
Anton schrieb:
> When I set the variables manually (typing in the cygwin shell)
> everything is OK.
>
> When I use *.sh file with those settings, it does not work because
> variables are "overwritten", for example these two lines:
>
> export TOSROOT="/opt/tinyos-2.x"
> export TOSDIR="$TOSROOT/tos"
>
> in the shell script cause TOSDIR value to be "/tos/tinyos-2.x", so
> instead of appending "/tos" after TOSROOT, "/tos" is written in the
> beginning (and it overwrites "/opt").
>
> Does anybody know why this happens?
>
You are using the wrong fileformat. Use "dos2unix.exe" to convert "*.sh"
Axl
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
More information about the Tinyos-help
mailing list