#43 create-temp-file does not like ~ in pref

closed-fixed
Olin Shivers
run-time (53)
5
2001-05-29
2001-05-28
No

From: Michel Schinz <Michel.Schinz@epfl.ch>
Sender: schinz@lamppc6.epfl.ch
To: scsh-bugs@zurich.ai.mit.edu
Subject: Bug: create-temp-file does not like ~ in
prefix
Date: 03 Jul 2000 12:49:22 +0200

Hi!

I don't know whether this is a code or documentation
bug, but
create-temp-file passes its prefix argument directly to
temp-file-iterate, which needs a format-string.
Therefore if the
prefix given to create-temp-file contains a tilde, an
error occurs:

> (create-temp-file "/tmp/~temp")

Error: illegal format command
"/tmp/~temp.~a"
#\t
1>

Michel.

Discussion

  • Olin Shivers
    Olin Shivers
    2001-05-29

    • status: open --> closed-fixed
     
  • Olin Shivers
    Olin Shivers
    2001-05-29

    Logged In: YES
    user_id=101304

    Code was broken. Now fixed. Thanks.