Re: [Toybox] is orthodoxy a strong value of toybox?

2022-09-01 Thread Marc Chantreux
hello, > I am the bash developer. nice. thanks for your work. > I've never given it much thought. It certainly isn't written "small," nor > is there any development emphasis on minimizing binary size. These days, > that doesn't really matter. It's all about what the VM system needs to copy >

Re: [Toybox] is orthodoxy a strong value of toybox?

2022-09-01 Thread Chet Ramey
On 9/1/22 4:33 PM, Marc Chantreux wrote: Chet: if you're involved in bash developpement and don't bother replying to me: I am the bash developer. I'm really curious about why the bash binary is so big (compared to zsh, for example, which has a lot of cool features stolen from rc, tcsh and

Re: [Toybox] diff.c

2022-09-01 Thread enh via Toybox
On Tue, Aug 30, 2022 at 3:53 AM Rob Landley wrote: > On 8/29/22 19:17, enh wrote: > > On Sat, Aug 27, 2022 at 1:59 AM Rob Landley > > wrote: > > > > On 8/26/22 18:11, enh via Toybox wrote: > > > have you tried? the llvm-libc folks are effectively starting from >

[Toybox] [PATCH] tar.test: fix the tests when run as root.

2022-09-01 Thread enh via Toybox
Afaik, I'm the only person regularly running the toybox tests as root (in Android's CI), so I haven't actually fixed the character special and block special tests for macOS here --- I've fixed them so they work again on Android and Linux, and am just assuming we'll "skipnot" them on macOS. The

Re: [Toybox] "bad xform" not very helpful

2022-09-01 Thread enh via Toybox
On Wed, Aug 31, 2022 at 11:37 PM Rob Landley wrote: > On 8/31/22 16:55, enh wrote: > > and if i `CONFIG_TOYBOX_NORECURSE=y`, it calls sed and works... > > > > ...though this might be about to come back and bite me. i'm hearing > as-yet > > unconfirmed reports that toybox `tar czf` is a lot

Re: [Toybox] is orthodoxy a strong value of toybox?

2022-09-01 Thread Marc Chantreux
hello, > No, it'll be what the Linux command line needs. Posix is insufficient, it thanks for correcting me on that. > https://github.com/landley/toybox/blob/master/toys/posix/sed.c#L14 nice! > Bash does not accept non-compound commands, and toysh is using "what bash > does" > as its

Re: [Toybox] is orthodoxy a strong value of toybox?

2022-09-01 Thread Chet Ramey
On 9/1/22 1:24 PM, Rob Landley wrote: Hey Chet: why doesn't bash accept non-compound commands as functions? I have wondered. Apparently other shells disagree on this...? Because the POSIX grammar says a function body is a compound command, optionally followed by a redirection list, and I

Re: [Toybox] is orthodoxy a strong value of toybox?

2022-09-01 Thread Rob Landley
On 9/1/22 05:25, Marc Chantreux wrote: > hello people, > > This is my first post so: > > * Rob (and maybe other contributors I don't know about): thank you so much > for your work > * short intro of myself: I work at the University of Strasbourg HPC, > linux user since the last millenium

Re: [Toybox] [PATCH] getfattr.c: fix overlayfs merged dir stuck

2022-09-01 Thread Weizhao Ouyang
On 2022/9/1 05:29, Rob Landley wrote: > On 8/31/22 12:00, Weizhao Ouyang wrote: >> On 2022/8/31 18:48, Rob Landley wrote: >>> On 8/31/22 05:35, Rob Landley wrote: On 8/30/22 10:31, Weizhao Ouyang wrote: > When getfattx reading overlayfs merged dirs, listxattr will got > different

[Toybox] is orthodoxy a strong value of toybox?

2022-09-01 Thread Marc Chantreux
hello people, This is my first post so: * Rob (and maybe other contributors I don't know about): thank you so much for your work * short intro of myself: I work at the University of Strasbourg HPC, linux user since the last millenium (always happy to help and share), perl monger and raku

Re: [Toybox] "bad xform" not very helpful

2022-09-01 Thread David Seikel
On 2022-09-01 04:35:24, Rob Landley wrote: > On 8/30/22 03:59, David Seikel wrote: > > I'm good at reading code, but I know you are not. > > As demonstrated below. Well I had already cobbled together something that works for me, copying stuff from other parts of toybox, that largely did what you

Re: [Toybox] "bad xform" not very helpful

2022-09-01 Thread Rob Landley
On 8/30/22 03:59, David Seikel wrote: > I'm good at reading code, but I know you are not. As demonstrated below. On 8/31/22 20:33, David Seikel wrote: > On 2022-08-31 18:18:15, enh via Toybox wrote: >>it does by default. that's what i turned off as a workaround for this bug. > > Um how does

Re: [Toybox] "bad xform" not very helpful

2022-09-01 Thread Rob Landley
On 8/31/22 16:55, enh wrote: > and if i `CONFIG_TOYBOX_NORECURSE=y`, it calls sed and works... > > ...though this might be about to come back and bite me. i'm hearing as-yet > unconfirmed reports that toybox `tar czf` is a lot slower than gnu tar, and -- > given that they're using