[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #18174] [wishlist] Add "-type u" test for paths with unknown type
From: |
James Youngman |
Subject: |
[bug #18174] [wishlist] Add "-type u" test for paths with unknown type |
Date: |
Sat, 05 May 2007 10:33:38 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 (Debian-1.5.dfsg+1.5.0.7-2) |
Update of bug #18174 (project findutils):
Status: None => Wont Fix
Assigned to: None => jay
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
I've decided not to implement this.
The current behaviour is easy to explain and complies with POSIX. The
proposed bahviour may or may not be POSIX compliant, is somewhat trickier to
explain, and probably makes a lot of things more ambiguous.
For example, this query would print the names of files we can't stat, but the
"-size" test would need to fail (since we do not know the size).
find -type u -print -size 3 [more predicates]
However, consider this alternative query:
find -type u -print ! -size 3 [more predicates]
Here, "! -size 3" would also have to fail, because we cannot be sure that the
file we cannot stat does _not_ have a size of 3.
This means that instead of predicates returning true/false valus, they would
all need to be able to return Tuue vs. False vs. Indeterminate.
That would add a lot of complexity, and I don't believe the benefit justifies
the additional complexity.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18174>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #18174] [wishlist] Add "-type u" test for paths with unknown type,
James Youngman <=