Eric Blake <[EMAIL PROTECTED]> writes:

> And here's the patch.  As a nice side effect, it also optimized 'ls -L' to
> avoid stat() (after all, dereferencing makes no sense when all you need is
> file names, and no information from the dereference).

Hmmm, won't that break the behavior on dangling symlinks?
here's the coreutils 5.94 behavior:

   $ mkdir d
   $ cd d
   $ ln -s nowhere x
   $ ls -l
   total 0
   lrwxrwxrwx 1 eggert eggert 7 Feb 26 01:17 x -> nowhere
   $ ls -L
   ls: x: No such file or directory

I haven't tried the patch, but from your description of it it sounds
like the output of the last command would be "x", which doesn't sound
right to me.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to