the files listed with du -a do not match ls -R, possible bug?

Aaron Wegner <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
I think I found what may be a bug in the du program.  So far I have only been 
able to observe this anomaly in my build directory for glibc.  The bug is 
uncovered with the following commands, issued from the base of the build 
directory:
--------------------------------------
# ls -lR | grep '\.op$' | awk '{printf("%s\n", $NF)}' | sort > ls_c_files

# du -a . | grep '\.op$' | awk 'BEGIN {FS="[\/]"} {printf("%s\n", $NF)}' | 
sort > du_c_files

# sdiff -s du_c_files ls_c_files
                                                              > mcount.op
                                                              > profil.op
                                                              > sprofil.op
---------------------------------------
Thank you for your time and effort.

Aaron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.