Given a sed expression (and GNU sed 4.2.2 on ArchLinux)
which should insert two tab-indented lines above the match, I find that the escaping of the first character (in the example,
\t) is ignored but all other escaped characters are treated correctly.
Testing this like this:
echo match | sed -e '/match/i\tline1\n\tline2'
tline1 line2 match
It doesn't matter what the initial escaped character is (e.g. tab or newline) the result is the same. What is the correct way to consrtuct the expression so that the first character is treated correctly?