rmyorston / busybox-w32

WIN32 native port of BusyBox.
https://frippery.org/busybox
Other
670 stars 124 forks source link

'ed' command is unexpected #431

Closed wanghan519 closed 1 month ago

wanghan519 commented 1 month ago
seq 4 > a.txt
seq 11 14 > b.txt
ed a.txt

2r b.txt
,p

1 2 11 3 12 13 14 4

3 should be after 14, but now it's after 11.

win10 22H2 busybox v1.37.0-FRP-5398-g89ae34445

thank you

rmyorston commented 1 month ago

The same issue is present in upstream BusyBox on Linux. I'll look into it.

rmyorston commented 1 month ago

I have a fix for the issue. It's available in the latest prerelease binaries on my website (PRE-5435 or above).

I've also submitted a patch upstream.