[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls -i inefficiency
From: |
Paul Eggert |
Subject: |
Re: ls -i inefficiency |
Date: |
Sun, 26 Feb 2006 01:19:37 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Eric Blake <address@hidden> 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.