[plt-scheme] Bug, or feature?

From: Matt Jadud (mcj4 at kent.ac.uk)
Date: Wed Mar 30 10:39:33 EST 2005

This is some pretty exciting stuff. Fortunately, I use version control, 
and having just nuked a few thousand lines of code because I issued a 
'mzc299 --exe' in the wrong place is actually no big deal at all.

However... destroying a directory might be a bit overzealous, no? I 
suppose it could be viewed as a feature, but the neat thing was, mzc 
couldn't even find the file that I was trying to bytecode compile, 
because I was in the wrong place. Granted, I still got 'rm -rf <target>' 
for free. :)

My neat discovery for the day,
Matt

dhcp1084:/tmp mcj4$ mkdir remove-me
dhcp1084:/tmp mcj4$ cat > file.ss
(module file mzscheme
   (printf "hi~n"))
dhcp1084:/tmp mcj4$ mzc299 --exe remove-me file.ss
MzScheme compiler (mzc) version 299.33, Copyright (c) 2005 PLT Scheme, Inc.
  [output to "remove-me"]
dhcp1084:/tmp mcj4$ ls -al
total 176
drwxrwxrwt  12 root  wheel    408 30 Mar 16:34 .
drwxr-xr-x   5 root  wheel    170 15 Mar 10:00 ..
-rw-r--r--   1 mcj4  wheel     41 30 Mar 16:34 file.ss
-rwxrwxr-x   1 mcj4  wheel  26104 30 Mar 16:34 remove-me
dhcp1084:/tmp mcj4$ ./remove-me
hi
dhcp1084:/tmp mcj4$



Posted on the users mailing list.