<div dir="ltr">and here's their minimized repro case:<div><br></div><div>echo > /tmp/foo.txt; echo /tmp/foo.txt > /tmp/find.txt<br><br>cat /tmp/find.txt | prebuilts/build-tools/path/linux-x86/tar czf /tmp/out.tar.gz \<br>  --absolute-names \<br>  --transform 's,^/,,' -T -</div><div><br>This fails with<br><br>tar: bad xform<br><br></div><div>However, if the file names are fed via the -T /tmp/find.txt, it works:<br><br>echo > /tmp/foo.txt; echo /tmp/foo.txt > /tmp/find.txt<br><br>prebuilts/build-tools/path/linux-x86/tar czf /tmp/out.tar.gz \<br>  --absolute-names \<br>  --transform 's,^/,,' -T /tmp/find.txt<br></div><div><br></div><div>(the "prebuilts/build-tools/path/linux-x86/" stuff is just a directory full of symlinks to toybox.)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 15, 2022 at 1:52 PM enh <<a href="mailto:enh@google.com">enh@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">the kernel folks are trying to use `tar --transform` and getting the "bad xform" error that's not really helping them much. it seems like it would be hard to list the _relevant_ sed expression(s), so perhaps just showing the specific filename we tried that failed is a better choice?<div><br></div><div>context here: <a href="https://android-review.googlesource.com/c/kernel/build/+/2151397/3//COMMIT_MSG#10" target="_blank">https://android-review.googlesource.com/c/kernel/build/+/2151397/3//COMMIT_MSG#10</a></div></div>
</blockquote></div>