[Toybox] Tar --transform is weird.

Rob Landley rob at landley.net
Fri May 20 20:55:52 PDT 2022


On 5/20/22 18:02, scsijon wrote:
> 
> On 21/5/22 00:05, Rob Landley wrote:
>> On 5/19/22 18:55, scsijon wrote:
>>> https://www.gnu.org/software/tar/manual/html_section/transform.html#transform
>>> is the refreance page for this. Look about halfway down for 's' and 'S'.
>>
>> I did:
>>
>> The expression is a sed-like replace expression of the form:
>> s/regexp/replace/[flags]
> 
> try
> 
> s,regexp/replace/[flags]

$ tar c one --xform s,three/zero/ | tar t
tar: Invalid transform expression

> it should use sed correctly then, the problem is that transform
> looks for it's flags first and can 'mess-up'. they have been told,
> and the easy fix, but ignored the email.

You could to test your suggestions against the tar on your own system. Just a
thought.

Rob



More information about the Toybox mailing list