[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkstemp strange behavior
From: |
José Roberto B . de A . Monteiro |
Subject: |
Re: mkstemp strange behavior |
Date: |
Wed, 10 Aug 2005 16:24:47 -0300 |
User-agent: |
Mutt/1.5.9i |
On Wed, Aug 10, 2005 at 01:54:31PM -0400, Alan Grover wrote:
> I ran into this too. My reasoning was something like:
>
> The string, "/tmp/XXXXXX" is constructed at reader time. So, there is
> exactly one string. The "let" creates a new variable each time you call
> "test", but the variable is bound to the same string.
>
> Mkstemp modifies the (one and only) string the first time.
> ...
Thanks Alan, I think it is the reason, so it worked using:
(let ((filename (string-copy "/tmp/XXXXXX"))
(f (mkstemp! filename)))
...)
Regards
Betoes