From: Ricardo Wurmus <rekado@elephly.net>
To: edk@beaver-labs.com
Cc: help-guix@gnu.org
Subject: Re: Error with guile function format
Date: Fri, 12 Mar 2021 19:23:45 +0100 [thread overview]
Message-ID: <878s6sp6xa.fsf@elephly.net> (raw)
In-Reply-To: <87sg50nwjc.fsf@rdklein.fr>
Hi,
> (cut format "quake3-latest-pk3s/baseq3/pak~a.pk3" <>)
this is not correct.
“format” expects as its first argument a port or #true/#false, then it
takes the format string followed by values for each placeholder.
If you want to generate strings you should do
(cut format #false "quake3-latest-pk3s/baseq3/pak~a.pk3" <>)
--
Ricardo
next prev parent reply other threads:[~2021-03-12 18:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-12 16:53 Error with guile function format edk
2021-03-12 17:27 ` JOULAUD François
2021-03-12 17:40 ` divoplade
2021-03-12 18:23 ` Ricardo Wurmus [this message]
2021-03-12 23:33 ` Edouard Klein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878s6sp6xa.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=edk@beaver-labs.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).