From: Christopher Lam <christopher.lck@gmail.com>
To: 58109@debbugs.gnu.org, guile-devel@gnu.org
Subject: bug#58109: simple-format vs (ice-9 format) bug in 3.0.7?
Date: Tue, 27 Sep 2022 18:23:14 +0800 [thread overview]
Message-ID: <CAKVAZZKyp=kQGZ-7ig1hwbN=w-7yO0UBmQjKrYj=8EpDQnk9Mw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]
Hi guilers, here's a short bash session.
Why would the first bash call to "guile s.scm" work, but not the second one?
guile-3.0.7 on ubuntu.
============================
$ cat s.scm
(format #t "~f\n" 2.5)
$ guile s.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /home/chris/s.scm
;;; compiled
/home/chris/.cache/guile/ccache/3.0-LE-8-4.5/home/chris/s.scm.go
2.5
$ guile s.scm
Backtrace:
In ice-9/boot-9.scm:
1752:10 6 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
5 (apply-smob/0 #<thunk 7efd190d5540>)
In ice-9/boot-9.scm:
724:2 4 (call-with-prompt ("prompt") #<procedure 7efd190e5760 …> …)
In ice-9/eval.scm:
619:8 3 (_ #(#(#<directory (guile-user) 7efd190d9c80>)))
In ice-9/boot-9.scm:
2835:4 2 (save-module-excursion #<procedure 7efd190c9150 at ice-…>)
4380:12 1 (_)
In unknown file:
0 (simple-format #t "~f\n" 2.5)
ERROR: In procedure simple-format:
In procedure simple-format: FORMAT: Unsupported format option ~f - use
(ice-9 format) instead
$ guile --version
guile (GNU Guile) 3.0.7
Packaged by Debian (3.0.7-deb+3.0.7-1)
Copyright (C) 2021 Free Software Foundation, Inc.
License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
============================
[-- Attachment #2: Type: text/html, Size: 1854 bytes --]
next reply other threads:[~2022-09-27 10:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-27 10:23 Christopher Lam [this message]
2022-09-27 10:35 ` bug#58109: simple-format vs (ice-9 format) bug in 3.0.7? Jean Abou Samra
2022-09-27 10:38 ` Jean Abou Samra
2022-10-01 13:40 ` bug#58109: " Ludovic Courtès
[not found] ` <87ill3fyrh.fsf@gnu.org>
2022-10-01 14:14 ` Jean Abou Samra
[not found] ` <cc81cf8f-86f5-f350-cab5-e090ade1cbc7@abou-samra.fr>
2022-10-12 20:50 ` Ludovic Courtès
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='CAKVAZZKyp=kQGZ-7ig1hwbN=w-7yO0UBmQjKrYj=8EpDQnk9Mw@mail.gmail.com' \
--to=christopher.lck@gmail.com \
--cc=58109@debbugs.gnu.org \
--cc=guile-devel@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).