Not to be fixed
Created: Oct 22, 2013
Updated: Mar 5, 2016
Resolved Date: Dec 20, 2013
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace
Problem Description
======================
busybox sort run unexpectly.
expect result:
xxxxxx@xxxxxx:~/buildarea/yocto-git/poky/scripts$ sort -k2,3n -r ./temp-sort
egg 1 2 papyrus
42 1 3 woot
42 1 010 zoology
999 3 0 algebra
7 3 42 soup
actual result:
root@qemu136:/usr/lib64/busybox/ptest/testsuite# busybox sort -k2,3n -r temp-sort
42 1 010 zoology
42 1 3 woot
egg 1 2 papyrus
7 3 42 soup
999 3 0 algebra
-r option is incorrect.
Expected Behavior
======================
root@qemu18:/mnt# sort -k2,3n -r ./temp-sort
egg 1 2 papyrus
42 1 3 woot
42 1 010 zoology
999 3 0 algebra
7 3 42 soup
Observed Behavior
======================
See above
Logs
======================
See above
Misc Info
======================
N/A
1
1) configure
$ /path/to/wrlinux/configure --enable-board=qemux86 --enable-rootfs=glibc-std --enable-kernel=standard --enable-jobs=16 --enable-parallel-pkgbuilds=16 --enable-reconfig=yes --enable-test=yes --with-template=feature/ptest
2) build
$ make fs
3) boot the target
* default nfsboot:
$ make start-target
2 boot target,
create a temp file named temp-sort with below content:
42 1 3 woot
42 1 010 zoology
egg 1 2 papyrus
7 3 42 soup
999 3 0 algebra
run:
busybox sort -k2,3n -r ./temp-sort