Fixed in git.
On Sun, Jan 2, 2022 at 2:49 AM Paul Eggert <[email protected]> wrote: > > This bug in BusyBox 'sed' broke a Gnulib-based build; see > <https://lists.gnu.org/r/bug-gnulib/2022-01/msg00004.html>. > > The problem is that BusyBox 'sed' is confused about the 'w FILE' > command. When there are multiple 'w FILE' commands (or 's/.../.../w > FILE' commands) it opens FILE multiple times. This can lose data > intended for FILE. Here is a simple shell transcript illustrating the > problem: > > $ printf 'a\nb\n' | busybox sed -n -e '/a/w xxx' -e '/b/w xxx' > $ cat xxx > a > > The output should be: > > a > b > _______________________________________________ > busybox mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/busybox _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
