Sun 01 Jul 2007 10:08:58 PM UTC, comment #5:
Thank you, jay:
most coreutils (including sort) are provided through busybox-1.5.1
1. from /usr/bin/sort I have the following code snippet:
...
if true
then
sort="/usr/bin/sort -z"
print_option="-print0"
frcode_options="$frcode_options -0"
else
sort="/usr/bin/sort"
print_option="-print"
fi
...
2. As for sort, the -d and -r options work, but the -z seems not to (if I have interpreted you the command correctly).
"testfile" contains the following text:
box
124
zebra
candy
84lumber
lumberjack
results of sort commands:
-----------------------------
$ sort -d testfile
124
84lumber
box
candy
lumberjack
zebra
-----------------------------
$ sort -d -r testfile
zebra
lumberjack
candy
box
84lumber
124
-----------------------------
$ sort -d -r -z testfile
box
124
zebra
candy
84lumber
lumberjack
=============
I am in the midst of a bootstrap-image build right now, but when done I will try the patch. I do have m4 and autoconf installed.
thanks again
Dave
|