[21091] in Athena Bugs
sun4 9.1.13: lsdel
daemon@ATHENA.MIT.EDU (Elliot Schwartz)
Tue Nov 19 17:32:01 2002
Message-Id: <200211192231.RAA19479@department-of-alchemy.mit.edu>
To: bugs@MIT.EDU
Date: Tue, 19 Nov 2002 14:31:59 -0800
From: Elliot Schwartz <elliot@MIT.EDU>
System name: department-of-alchemy.mit.edu
Type and version: Sun-Fire-280R 9.1.13 (with mkserv)
Display type: unknown
Shell: /bin/athena/tcsh
Window manager: twm
What were you trying to do?
List a twice-deleted file.
athena% touch bar
athena% delete bar
athena% delete .#bar
athena% lsdel
bar
What's wrong:
The file appears as if it's only once-deleted.
This is misleading, because one would then expect this to work:
athena% undelete bar
undelete: bar: No such file or directory
(lsdel appears to strip off all occurances of .#, not just one.)
What should have happened:
The file should show up as twice-deleted:
athena% lsdel
.#bar
Please describe any relevant documentation references:
lsdel(1)
Incidentally, it looks like the comment at the top of lsdel.c
was copied from delete.c (i.e., it says "this program is a
replacement for rm"), when it really should be copied from one
of the other files (i.e., those that say "this program is part of
a package").