GNU bug report logs -
#32162
[PATCH] gnu: Add nethack
Previous Next
Reported by: Anonymous <mcrfan96 <at> cock.li>
Date: Sun, 15 Jul 2018 05:43:02 UTC
Severity: normal
Tags: patch
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
Message #20 received at 32162 <at> debbugs.gnu.org (full text, mbox):
On 7/17/18, 2:07 PM, "Anonymous" <mcrfan96 <at> cock.li> wrote:
On 7/17/18, 2:00 PM, "Ludovic Court=C3=A8s" <ludo <at> gnu.org> wrote:
Anonymous <mcrfan96 <at> cock.li> skribis:
>> Rather:
>>
>> (for-each (lambda (file)
>> (install-file file
>> (string-append … "/games/lib/nethackuserdir")))
>> '(…))
>
> I wasn't able to use install-file, since I want the file to be moved, not
> copied. Let me know if there's a guile way to move a file (I couldn't find
> one).
You could use ‘rename-file’, which works like rename(2) in C.
Unfortunately, rename-file doesn't appear to work on directories, and at
least "save" is a directory. Is it worth trying to address this, or is using "mv" ok?
This bug report was last modified 6 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.