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?
> >   
>   


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to