Timeline for Will we ever "find" files whose names are changed by "find"? Why not?
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 3, 2018 at 9:15 | history | edited | Kusalananda♦ | CC BY-SA 4.0 | deleted 318 characters in body |
| Mar 8, 2018 at 22:39 | vote | accept | Kusalananda♦ | ||
| Feb 14, 2018 at 7:02 | history | edited | Kusalananda♦ | CC BY-SA 3.0 | added 144 characters in body |
| Feb 13, 2018 at 22:07 | comment | added | RomanPerekhrest | @Wildcard, I like find tool ... but don't like implementation discrepancies (let's call it idealism) | |
| Feb 13, 2018 at 22:04 | comment | added | Wildcard | @RomanPerekhrest, ah, I see. Your first comment quoted the POSIX spec so I wasn't sure. I wouldn't say it's bad, though (that the find devs don't mention it). As described in ikkachu's answer, that's a filesystem level behavior, not even specified in the readdir() system call spec. There are going to be race conditions no matter what. | |
| Feb 13, 2018 at 22:01 | comment | added | RomanPerekhrest | @Wildcard, words "specification" and "implementation" are clear. A cite from the question: The GNU find manual does not explicitly say anything about this and neither does the OpenBSD find manual. So, that's bad ... and I shouldn't be compelled to like that | |
| Feb 13, 2018 at 21:51 | comment | added | Wildcard | @RomanPerekhrest, it's unspecified in the POSIX specification. That doesn't mean the authors of find utility don't get concerned with the behavior. It means it's left to the authors of any given implementation of the find utility how to handle that case, rather than being specified. (If that seems unclear I recommend you fully clear up the words "specification" and "implementation" as they apply to software.) | |
| Feb 13, 2018 at 21:20 | history | tweeted | twitter.com/StackUnix/status/963523267251376128 | ||
| Feb 13, 2018 at 21:01 | answer | added | ilkkachu | timeline score: 8 | |
| Feb 13, 2018 at 20:07 | history | edited | Kusalananda♦ | CC BY-SA 3.0 | added 28 characters in body |
| Feb 13, 2018 at 19:12 | comment | added | Michael Homer | readdir has essentially the same specification. I would expect it to be potentially filesystem-specific, even (loading one block of directory entries at a time is pretty reasonable). | |
| Feb 13, 2018 at 19:07 | comment | added | RomanPerekhrest | it is unspecified whether or not - I wonder why do the authors of find utility not get concerned of such tricky behavior | |
| Feb 13, 2018 at 19:03 | history | edited | Kusalananda♦ | CC BY-SA 3.0 | added 13 characters in body |
| Feb 13, 2018 at 18:56 | history | asked | Kusalananda♦ | CC BY-SA 3.0 |