The findutils command "find" is broken for -ls. Doing `find . -type f -ls' returns:
a) no day column (there are 3 colums like Oct 18 2013, and the middle one is missing),
b) the byte-size (7th column, it's before the date colums) is not always correct, for large files (e.g. 3.5 GB) it is the ULLONG_MAX minus bytes.
find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: O_NOFOLLOW(disabled) LEAF_OPTIMISATION FTS() CBO(level=0)
Exactly the same version (identical --version output) on Ubuntu 12.10 works correctly for large files:
$ uname -a
Linux (...) 3.5.0-43-generic #66-Ubuntu SMP (...) i686 i686 i686 GNU/Linux
I have the same issue. It was quite a nuisance to me because Emacs
M-x find-name-diredcommand usesfindwhith the-lsoption rather than a more explicit-exec ls - dils {} +. Fortunately, this can be got around in any one of the two following ways:-exec ls - dils {} +into the car element of variablefind-ls-option.(setq find-program "Path/to/the/correct/find.exe")in your Emacs init file — this variable does not have and customize interface.Here is an examplification of the problem with MSYS find:
I am also using version 4.4.2:
Last edit: Vincent Belaïche 2017-06-16