Re: [Toybox] Tar --transform is weird.

2022-05-24 Thread Rob Landley
On 5/23/22 19:45, enh wrote: > https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/scripts/Makefile.package#49 That first one is using S (do not apply to symlinks), which is weird because it LOOKS like it's doing git archive --prefix= and why wouldn't you do that to

Re: [Toybox] Tar --transform is weird.

2022-05-23 Thread enh via Toybox
https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/scripts/Makefile.package#49 and https://android.googlesource.com/kernel/build/+/d68a8336a396a98820de2b3432ce5206fe70c854/build.sh#668 are the only two usages i've ever seen (and internal code search didn't have any others

Re: [Toybox] Tar --transform is weird.

2022-05-21 Thread Rob Landley
I don't have a xenial iso lying around but I just tried it on "focal fossa", and it failed exactly the same way. Presumably because s,regexp/replace/flags does not use the same separator all the way through, a sed expression with s,one,two,flags could work, but that's not what you said nor what I

Re: [Toybox] Tar --transform is weird.

2022-05-20 Thread Rob Landley
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

Re: [Toybox] Tar --transform is weird.

2022-05-20 Thread Rob Landley
On 5/20/22 09:05, Rob Landley wrote: > And again, why a --show-stored-names if it's the default? There isn't an "rm > -r > --do-not-recurse". How does this HELP? And of course, using that one/two/three/four/five/six hierarchy where six is a file and the ones before it are directories: diff -u

Re: [Toybox] Tar --transform is weird.

2022-05-20 Thread scsijon
On 21/5/22 00:05, Rob Landley wrote: On 5/19/22 18:55, scsijon wrote: Sorry for the toppost but i don't know where this should go. Eh, it was pretty long. :) My understanding is that you should be putting the S flag at the START of the transform= line, not the end as it's actioned in order

Re: [Toybox] Tar --transform is weird.

2022-05-20 Thread Rob Landley
On 5/19/22 18:55, scsijon wrote: > Sorry for the toppost but i don't know where this should go. Eh, it was pretty long. :) > My understanding is that you should be putting the S flag at the START > of the transform= line, not the end as it's actioned in order from the = > and s is also a

Re: [Toybox] Tar --transform is weird.

2022-05-19 Thread scsijon
Landley) -- Message: 1 Date: Thu, 19 May 2022 08:58:49 -0500 From: Rob Landley To: toybox Subject: [Toybox] Tar --transform is weird. Message-ID: <1b5fb309-a720-d7a5-c7f3-5b1f7f283...@landley.net> Content-Type: text/plain; c

[Toybox] Tar --transform is weird.

2022-05-19 Thread Rob Landley
The "only apply transforms to certain file types" selection is CONCEPTUALLY broken because the directories leading to those entries participate in the transform, and the directories have their own type (which is not listed), and each directory is stored in its own entry because tar x doesn't mkdir