[one-users] bug in context variables

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Thu Feb 21 00:59:44 PST 2013


Hi,

I just found, that if context.sh variables contains character $ in 
value, then it is interpreted as variable name.

As a workaround (partial) I put

   sed -e "s/=\"/='/" -e "s/\"$/'/" < /mnt/context.sh > /tmp/context.sh
   . /tmp/context.sh
   rm /tmp/context.sh

into my init.sh.

Probably it would be better to escape $ and other characters in values 
or put values to single quotes (what makes difficult to pass single 
quotes itself in values also).

Regards, Rolandas Naujikas


More information about the Users mailing list