[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Poll: what should happen when -delete fails?
From: |
James Youngman |
Subject: |
Poll: what should happen when -delete fails? |
Date: |
Thu, 23 Aug 2007 11:24:08 +0100 |
A while back I implemented -delete for GNU find. Some comments have
been made that its behaviour when it fails are somewhat unexpected.
I thought at the time that I made the right tradeoffs, but that might
not be the case. Although there is a Savannah bug open for this
(https://savannah.gnu.org/bugs/?20802) please have a think about what
you would like to happen before you read about what happens juat at
the moment.
1. If unlink or rmdir fails, should the -delete action return true or false?
2. If -delete returns false because it fails, should find also return nonzero?
3. Should -delete issue a message on stderr if it fails, or (on the
other hand) should it be possible for the caller to choose how the
message is phrased by doing something like this?
\ ( -delete -o -fprintf /dev/stderr "No luck with %u's file %p\n" \)
James.
- Poll: what should happen when -delete fails?,
James Youngman <=