From: Andy Wingo <wingo@pobox.com>
To: "Whitlock\, Bradley D" <bradley.d.whitlock@lmco.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Can format procedure output unquoted strings?
Date: Tue, 12 Apr 2011 22:18:51 +0200 [thread overview]
Message-ID: <m3pqori5p0.fsf@unquote.localdomain> (raw)
In-Reply-To: <D6D90A401251394A86F1F98B1E2B6842169948282B@HVXMSP8.us.lmco.com> (Bradley D. Whitlock's message of "Tue, 12 Apr 2011 11:44:52 -0400")
Hi Bradley,
On Tue 12 Apr 2011 17:44, "Whitlock, Bradley D" <bradley.d.whitlock@lmco.com> writes:
> I am trying to get the format procedure to behave like the display procedure where it will not surround output to stdout with quotes
Use ~a instead of ~s.
scheme@(guile-user)> (format #t "~a\n" "foo")
foo
$1 = #t
scheme@(guile-user)> (format #t "~s\n" "foo")
"foo"
$2 = #t
See "Formatted Output" in the manual for all the gory details.
Have fun with Guile,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-04-12 20:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 15:44 Can format procedure output unquoted strings? Whitlock, Bradley D
2011-04-12 20:18 ` Andy Wingo [this message]
2011-04-12 20:58 ` Thien-Thi Nguyen
2011-04-12 23:38 ` Mark H Weaver
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://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3pqori5p0.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=bradley.d.whitlock@lmco.com \
--cc=guile-user@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).