> Pick up the new code, it reads the key from /lib/gmapkey
> and gets the longditude and latitude the correct way round
> (as several people have told me.
I use:
lng=`{echo $here(2) | sed -e 's/^-(.*)/+\1/' -e 's/^([0-9])/-\1/'}
Because double negatives (--) don't seem to cut it in the URL :-)
I imagine there's a better way, but rc programming is not my strong
suit. And I can't test now the simplification that drops the \1 from the first
term.
I got caught by the fact that the space after -e is mandatory (why?)
and the first \1 belongs to me trying to figure out what I was doing
wrong.
++L