fabric/fabric — pull request #802 by shon (2012-12-20 06:46:00+00:00)
Title: Single quote handling in sed

So single quotes are used for wrapping the expressions.
So if expression uses signle quote(s) that needs to be escaped.
In case of single quote special escape is needed i.e. ' => '\''

TODO: add a test case
TODO: test can be as simple as sed(, "'", '"')
TODO: Need to think about the fact that this is more shell specific than sed