Charles Richmond said:
Joe Pfeiffer wrote:
[snip...] [snip...] [snip...]
At a PPOE, I had spent half a day making changes to a FORTRAN program
on a Harris 800 system. Then I accidentally deleted the source
file. (When you delete using a wildcard in the filename, you can
sometimes hurt yourself.) I could get the back-up from the previous
day, but then I would lose half-a-day's work.
How do you should yourself in foot in a Unix shell?
% rm * .o
rm: cannot remove `.o': No such file or directory
I'm *not* sure what you mean here. The Harris 800 system was running
the Vulcan operating system; quite different from a Unix shell.
If it had been 'rm *.o', it would have been "remove every file in the
directory ending in .o" -- in other words, all the object files. But
since it was 'rm * .o' (with a space between the * and the .o), it says
"remove every file in the directory, and the file named .o". The second
line is the system responding that there is no file named .o, which is
how you know you just shot yourself in the foot.