Hi
Krzysztof Klimonda wrote:
> The correct expression seems to be 's#\/#\\\/#', as shown below:
>
> #!/bin/sh
> OS_VERSION="squeeze/sid"
> echo ${OS_VERSION} | sed 's/\//\\\//'
> OS_VERSION=`echo ${OS_VERSION} | sed 's#\/#\\\/#'`
> echo OS_VERSION=$OS_VERSION
> OS_VERSION=`echo ${OS_VERSION} | sed 's/\//\\\//'`
> echo OS_VERSION=$OS_VERSION
>
> But frankly I have no idea why.. Maybe backticks somehow mess with
> escaping.
>
Oops, you're absolutely right. I guess my quick patch was a bit too
quick! :)
> Also, would you consider to add lsb-release to Build-Depends? Miniupnp
> would be able to distinguish Debian and Ubuntu.
> I'm not sure for what is OS' version and name used though, I'll try to
> get some feedback from Transmission's developer about that.
As far as I could see, these were just cosmetic details, but it would be
certainly nice if you could get a definitive answer about that.
Cheers and thanks for the heads-up.
--
Leo "costela" Antunes
[insert a witty retort here]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]