[Tinyos-help] environmental variables in shell script
Anton
ageev at disi.unitn.it
Thu Oct 2 06:51:20 PDT 2008
I realized what was the problem: because I created the script file in
Windows. After I had written that script in cygwin (using commands "cat"
and "vi") everything was all right. As far as I understand all this
troubles were due to CR characters present in the Windows text file.
Thanks to Eric Keller, Milos Rovcanin, Axl Schreiber for their replies.
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?
> >
>
More information about the Tinyos-help
mailing list