Mercurial > hg > toybox
view .hgtags @ 1669:e3d20011b68e draft
Fix sed s//\[newline]/ line continuations.
The problem was that readline() was returning a newline at the end of each
string, which wasn't getting stripped in the parser and thus \ wasn't at the
end of a line for -f, it was escaping a literal newline, so the continuation
logic didn't trigger. Remove some redundant null checks while we're at it,
and don't bother terminating a string we don't return (yes we leak memory
in an error path, but it's about to error_exit() anyway).
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 22 Jan 2015 02:18:30 -0600 |
parents | 4a68c2b7787c |
children | b248ef9d3f3e |
line wrap: on
line source
8f8a8ac59c14ffa0428092b4c2714e12065f3492 0.0.1 d2e38cb0b1cd8da4fcbd976c3e598ec110528ce6 0.0.2 a459c6b396454b56eddb5a426c6e0231a41d1de8 0.0.3 104792581cc929a38aee401840cfddaed88f7da1 0.0.4 09ecbdf58c874d073184427b241ed3908976e771 0.0.5 6e65eefc37e999b378d1eca271bf93011e5f5a25 0.0.6 db86f4df58b9ba8bf3b9b5a22c7500de77caee14 0.0.7 86e2bdb2ad669058a4a34248914165a8055367b5 0.0.8 add8b512f41af9ddb08afaf77f76ba015d7cf1a0 0.0.9.1 f142d02036b63fe16d22d761eaea7c4938cd8f71 0.0.9.2 e708e8933a50733c1b520391acd4fb7612ead441 0.2.0 9bcc288a1c5498eca9d8468c477e747ace046a6f 0.2.1 d8566c3321f0a192211e25b077bed484974931d8 0.3.0 8bee9c27c21917907e5b1b7a191461704b3b13a4 0.3.1 85fc06bd63c4b2576af6778b21f8d65d807d7d4c 0.4.0 8871e80028126eec13772f343df02d5fc447a543 0.4.1 8947c0d35e585013640bac885a01d2c63b0a1b19 0.4.2 f8f5ddb6b69a98137e2b65516f34d8a60363b96e 0.4.3 52e69f6710cafae7eb5343cd7c3eeee4eac1a5a1 0.4.4 62ba5ce62e9d870623a024c6d702f89ba57d1e64 0.4.5 7ada6da9540aa3f3ebfc222d43653e87e5f91a29 0.4.6 663242f2962c83446cfcb70c393cfd28ac314e7a 0.4.7 8556669d3928316ebb141e945a0abb824859c19a 0.4.8 ffc015bddb26e2d3cf06c9bf0bf1d61177fab8fd 0.4.9 7afd32673a5c22668bbd24d77e57b03bdd3f7bba 0.5.0 62a7d617e1ce447bf7a19339673a73c9763d2e31 0.5.1