Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#946 closed defect (fixed)

csc can delete files specified on the command-line

Reported by: Alan Post Owned by: felix winkelmann
Priority: major Milestone: someday
Component: compiler Version: 4.8.x
Keywords: Cc:
Estimated difficulty:

Description

The follow commands:

touch a.scm b.c
csc -o b a.scm b.c

will delete the file b.c.

I expected, running the above, that the executable b would be created (or any errors in doing so to be reported.) Instead one finds the input file has been deleted.

Minimally I consider this anti-social, maximally I lost a file I'd invested a lot of time writing. :-(

Can a warning, error, or workaround be added to csc so it does not delete input files specified on the command-line?

Change History (3)

comment:1 Changed 12 years ago by felix winkelmann

Owner: set to felix winkelmann
Status: newassigned

comment:2 Changed 12 years ago by sjamaan

Resolution: fixed
Status: assignedclosed

Fixed by 0b0fcb6

comment:3 Changed 12 years ago by Alan Post

Confirmed fixed. Thank you everyone for your feedback and effort.

Note: See TracTickets for help on using tickets.