From: Noam P. <npo...@us...> - 2011-04-11 23:13:30
|
I've cc'd to the Debian BTS. Mònica Ramírez Arceda <mo...@pr...> writes: > The original submitter of this bug has sent an argument to Debian BTS. I > forward our dialog: [...] > XMLStarlet should be fixed in one way or the other, so that at least > one of the following works, i.e. gives a line with "a" followed by a > tab character followed by "b": > > $ echo '<root/>' | xml sel -T -t -v "'a$(printf \\t)b'" -n > $ echo '<root/>' | xml sel -T -t -v "'a	b'" -n > > Currently the former command gives: "a b" (with a space). Ah, that is a wrinkle I overlooked. Fortunately, the first command does give a tab in version 1.1.0 since in that version the stylesheet xml tree is built directly in memory instead of parsing it from a string. Noam |