bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #20310] updatedb generates an invalid database of (1) one filename


From: David Purdy
Subject: [bug #20310] updatedb generates an invalid database of (1) one filename (=concatenation of all filenames on the fs)
Date: Tue, 03 Jul 2007 21:47:49 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #5, bug #20310 (project findutils):

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

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20310>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]