[9313] in Athena Bugs
Re: delete
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Mon May 11 14:39:14 1992
Date: Mon, 11 May 92 11:34:45 -0400
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: wchuang@Athena.MIT.EDU
Cc: bugs@Athena.MIT.EDU
In-Reply-To: [9310]
The behavior of delete is correct.
Since "-" is not a valid option, it is treated as a file. Just like
rm, delete tries to remove all of the files that are specified on the
command line, even if one or more of them fails. Therefore, delete
correctly prints an error because it cannot remove "-", and then
continues and removes "-foo". Note, further, that the program exits
with a non-zero exit status in this case to indicate that it could not
delete all of the files that were specified.
Jonathan Kamens
IS/Athena Quality Assurance