wanted: SUPERSEDE / OVERWRITE restart for :IF-EXISTS :ERROR
Bug #806398 reported by
Tobias C. Rittweiler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
(progn (open "/tmp/foo" :direction :output :if-exists :supersede)
It would be nice if there was a restart to supersede / overwrite the existing file.
Changed in sbcl: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
tags: | added: easy feature |
Changed in sbcl: | |
assignee: | Luís Oliveira (luismbo) → Nikodemus Siivola (nikodemus) |
status: | Triaged → In Progress |
Changed in sbcl: | |
assignee: | Luís Oliveira (luismbo) → Nic M (nicdevel) |
Changed in sbcl: | |
assignee: | Nic M (nicdevel) → nobody |
status: | In Progress → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's a first stab at this. I think implementing the restart as a recursive call is nice because (a) it shows up in the stack trace and (b) it's straightforward to implement. However, cluttering OPEN with a &REST ARGS is a bit unfortunate. Any better ideas?