Re: [Toybox] alias tar="tar --restrict"

2019-05-12 Thread Rob Landley
On 4/11/19 5:29 PM, Rob Landley wrote: > On 4/11/19 11:34 AM, enh wrote: >> On Fri, Apr 5, 2019 at 8:44 PM Rob Landley wrote: >>> >>> I just added --restrict to require all the tarball's contents to extract >>> under a >>> single directory, and the obvious way to use it is the same as ls --color,

Re: [Toybox] alias tar="tar --restrict"

2019-04-15 Thread enh via Toybox
On Fri, Apr 12, 2019 at 11:49 AM Rob Landley wrote: > > On 4/11/19 7:52 PM, enh wrote: > > On Thu, Apr 11, 2019 at 5:46 PM Rob Landley wrote: > >> > >> On 4/11/19 7:12 PM, enh wrote: > Yeah but if their implementation's 20 years old and I had the short > option name > first... > >

Re: [Toybox] alias tar="tar --restrict"

2019-04-12 Thread Rob Landley
On 4/11/19 7:52 PM, enh wrote: > On Thu, Apr 11, 2019 at 5:46 PM Rob Landley wrote: >> >> On 4/11/19 7:12 PM, enh wrote: Yeah but if their implementation's 20 years old and I had the short option name first... >>> >>> that would be a stronger argument if you were actually going to

Re: [Toybox] alias tar="tar --restrict"

2019-04-11 Thread enh via Toybox
On Thu, Apr 11, 2019 at 5:46 PM Rob Landley wrote: > > On 4/11/19 7:12 PM, enh wrote: > >> Yeah but if their implementation's 20 years old and I had the short option > >> name > >> first... > > > > that would be a stronger argument if you were actually going to POSIX > > with this stuff. the trou

Re: [Toybox] alias tar="tar --restrict"

2019-04-11 Thread Rob Landley
On 4/11/19 7:12 PM, enh wrote: >> Yeah but if their implementation's 20 years old and I had the short option >> name >> first... > > that would be a stronger argument if you were actually going to POSIX > with this stuff. the trouble is that they _do_... Posix removed "tar" and "cpio" from their

Re: [Toybox] alias tar="tar --restrict"

2019-04-11 Thread enh via Toybox
On Thu, Apr 11, 2019 at 5:03 PM Rob Landley wrote: > > On 4/11/19 5:52 PM, enh wrote: > >>> (in general the other direction is dangerous too, but in this specific > >>> case i'm pretty sure no-one wants to change tapes on Android or during > >>> an AOSP build --- though you'd be surprised by some

Re: [Toybox] alias tar="tar --restrict"

2019-04-11 Thread Rob Landley
On 4/11/19 5:52 PM, enh wrote: >>> (in general the other direction is dangerous too, but in this specific >>> case i'm pretty sure no-one wants to change tapes on Android or during >>> an AOSP build --- though you'd be surprised by some of the requests we >>> do get from folks who don't value herme

Re: [Toybox] alias tar="tar --restrict"

2019-04-11 Thread enh via Toybox
On Thu, Apr 11, 2019 at 3:29 PM Rob Landley wrote: > > On 4/11/19 11:34 AM, enh wrote: > > On Fri, Apr 5, 2019 at 8:44 PM Rob Landley wrote: > >> > >> I just added --restrict to require all the tarball's contents to extract > >> under a > >> single directory, and the obvious way to use it is the

Re: [Toybox] alias tar="tar --restrict"

2019-04-11 Thread Rob Landley
On 4/11/19 11:34 AM, enh wrote: > On Fri, Apr 5, 2019 at 8:44 PM Rob Landley wrote: >> >> I just added --restrict to require all the tarball's contents to extract >> under a >> single directory, and the obvious way to use it is the same as ls --color, >> via >> alias. >> >> $ tar cz linux-4.20

Re: [Toybox] alias tar="tar --restrict"

2019-04-11 Thread enh via Toybox
On Fri, Apr 5, 2019 at 8:44 PM Rob Landley wrote: > > I just added --restrict to require all the tarball's contents to extract > under a > single directory, and the obvious way to use it is the same as ls --color, via > alias. > > $ tar cz linux-4.20 l*.txt > ll.tgz > $ tar xvf ../ll.tgz --re

Re: [Toybox] alias tar="tar --restrict"

2019-04-05 Thread David Seikel
For what it is worth, OpenSim (the open source Second Life clone I do a lot of work in) has .iar and .oar files, which are just .tar.gz files with a specific restriction in the order of files in them. These files are archives of a users in world inventory, or parts of their inventory (.iar files),

[Toybox] alias tar="tar --restrict"

2019-04-05 Thread Rob Landley
I just added --restrict to require all the tarball's contents to extract under a single directory, and the obvious way to use it is the same as ls --color, via alias. $ tar cz linux-4.20 l*.txt > ll.tgz $ tar xvf ../ll.tgz --restrict ... linux-4.20/net/x25/x25_link.c linux-4.20/net/x25/x