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.6 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 (8.2 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.6 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
Drink up!
Impact of the Marshall Court
Rapper's Delight
Blockbuster
Paper airplane
Jewish
MiG-25 Foxbat
Are you in the light or in the dark?
Cookery
My correspondence with the Westboro Baptist Church
XML
neutron
Music of the Spheres
Anger, shaped like a man
New Writeups
antigravpussy
One fly amongst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
SwimmingMonkey
Conversations with Fo Fo, the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
E2 is a by-product of the existence of The Everything Development Company