Everything2
Near Matches
Ignore Exact
Full Text
Everything2

If it hasn't happened to you in Unix, it will

created by Lobsang Rampa

(idea) by Lobsang Rampa (1.5 y) (print)   ?   (I like it!) 1 C! Fri Dec 22 2000 at 5:17:53

After countless hours of editing and fixing bugs in your C programs, you're finally ready to go home. It's past midnight. You're tired, but happy to be delivering your project on time. It was a close call, but you made it.

Of course, let's clean the old .o files and do a final make, just to make sure the Makefile is fine:

/usr/project/src$ rm * .o
/usr/project/src$ rm: cannot remove `.o': No such file or directory
/usr/project/src$ ls -l
total 0
/usr/project/src$
Arrrrrrggggghhhhhh!!!.... An agonizing scream is heard in the night...

Note to non-Unix readers

If you don't know Unix, note that there's a space in the command "rm * .o", which should be "rm *.o" to remove all the object files in the current directory. With the space, the command will delete EVERYTHING (including your beloved C source code) and then try to erase a file named .o that does not exist. This is a very common mistake that people tend to do when they're very tired.


(idea) by illusionist (7.6 mon) (print)   ?   (I like it!) Fri Dec 22 2000 at 5:28:32

Or, as has happened many times to me: you get groggy and such, and you are careless with your compiler setups:

jbonci@reno programs> rm *.o
jbonci@reno programs> rm *.out
jbonci@reno programs> gcc myprog.c -o myprog.c
jbonci@reno programs> a.out
bash: a.out: command not found

(what?)
jbonci@reno programs> cat myprog.c
Garbled junk here

*Insert horrified scream here* I can think of three classes where that got me.

Keep in mind young Jedi, you are not a keyboard monkey!


Note: Do not try the above. You will compile over your old code!

(thing) by s_alanet (2.5 y) (print)   ?   (I like it!) Fri Dec 22 2000 at 6:06:11

Another fun case. Y'all know joe and its compatriots, jed and jmacs. It makes backups of files as filename~. After an intense editing session, your directories become littered with ~ files, which serve no purpose, and can be real pains (especially if they let people view the source of files that they shouldn't, which is a distinct possibility on a web server, where index.php~ is not the same as index.php - the former lets people view source, whereas the latter is safely executed.) To combat this, I normally do:
s_alanet@codemonkey:/home/httpd/html/$ rm -f *~
Which will go and delete all the ~ files created by joe without making me confirm each one. However, it has the capacity to misfire horribly:
s_alanet@codemonkey:/home/httpd/html/$ rm -f *
You'll note the missing ~ there. That's right - that says to delete all the files in the current directory, without asking. Whups...

Luckily, I managed to recover the files I deleted - a good thing, too, as I had put quite a few dozen hours of work into them, and my boss wanted them up on the web in a day or two.


printable version
chaos

Jedi Mind Hack Turing Gender Test a.out Night Shift in the IT Department
Using gzip to do computational linguistics Using a Jedi Mind Trick on State Troopers Movies where people do 31337 h4x0RiNg on a Macintosh PowerBook How to keep a secret
palindromic C program marijuana This is probably a bad thing. Jedi Mind Trick
Simon's Rock Improbability Field Using source control inside Emacs Without users, this wouldn't be a problem Joe
Infinite monkeys theorem Simon's Rock time Linux is free only if your time has no value This is our ool. Notice there is no P in it. Please keep it that way.
nodetype Young Jedi Thomas Dolby Common Desktop Environment
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
augmented triad
Heroin, MPTP, and the key to Parkinson's Disease
horse meat
Federal Marriage Amendment
aburage
Every beauty is a tragedy waiting to happen
Darryl Strawberry
December 6, 2006
The Help moJoe find his Biological Mother Project
Star of Bethlehem
Circle of Fifths
Futurist Manifesto of Lust
How to run a roleplaying game
New Writeups
fallensparks
George's Marvellous Medicine(thing)
Ctrl Y
cognitive dissonance(fiction)
SharQ
Gone Baby Gone(review)
halfWit
If I could, I'd title this "Freedom"(thing)
Roninspoon
Airline Hero(thing)
Ktistec
Why Women Are Always Cold(person)
doctor wilson
Drug policy reform(thing)
tejasa
Easy Raspberry Cheesecake(recipe)
Joysim
Drug policy reform(idea)
aneurin
Tyburn(place)
niruena
Boiling to death(idea)
artman2003
summer(thing)
doctor wilson
The Silver City and the Silent Sea(log)
Dreamvirus
The Silver City and the Silent Sea(poetry)
Aerobe
A nihilist's soulmate(poetry)
This page courtesy of The Everything Development Company