Fixed in git. Thank you.
On Wed, Jun 29, 2022 at 7:11 AM Dennis Chen wrote:
>
> All commands were run on both Ubuntu busybox v1.30.1 and Alpine busybox
> v1.35.0.
>
> I ran
> echo "3 March\n2 April" | busybox sort -k 2,2M
> and it returned
> 2 April
> 3 March
> It should
> Had to use -e to have it insert new line.
FWIW, I was able to get your tests to work without -e. (Alpine, busybox 1.35.0)
> Looking at sort.c in busybox seems that
> static char key_separator; is just defined, but not
> assigned a default value?
> Don't know if this might resolve issue?
>
All commands were run on both Ubuntu busybox v1.30.1 and Alpine busybox
v1.35.0.
I ran
echo "3 March\n2 April" | busybox sort -k 2,2M
and it returned
2 April
3 March
It should return
3 March
2 April
and indeed, that is what you get with GNU sort. (It