i have test with BusyBox v1.31.1 $cat test.sh echo abcdefghijk > a echo 12345 > b cat a b cat a b > bar cat bar
/bin/ash test.sh abcdefghijk 12345 abcdefghijk 12345 same when done manually, hope that helps ________________________________________ Von: busybox <[email protected]> im Auftrag von Christophe Leroy <[email protected]> Gesendet: Mittwoch, 20. Januar 2021 07:25:59 An: Grant Edwards; [email protected] Betreff: Re: Why doesn't "cat a b > foo" work? Le 19/01/2021 à 23:17, Grant Edwards a écrit : > On 2021-01-19, Grant Edwards <[email protected]> wrote: > >> I've confirmed that with our older version of busybox (1.26?) 'cat' >> doesn't use sendfile() for the test case above (which works >> fine). AFAICT from the strace output the sendfile64() call is made >> correctly, so it must be a kernel problem and not a gcc or libc >> problem. > > This is embarassing. > > I discovered and fixed the same thing 4 years ago by disabling use of > sendfile() when building 1.26. Unfortunately, the layout of the > .config file had changed so much between 1.26 and 1.31 that I missed > that when I was comparing the 1.26 config with the 1.31 config. > > Sorry for the noise. > Do you mean there is a bug somewhere and you just fix it for yourself ? What about fixing it for everyone ? Where you able to identify whether it is a kernel bug or not ? Christophe _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
