From: Ariel Rios <ariel@gnu.org>
To: guile-user@gnu.org
Subject: string-match error
Date: Wed, 15 Jan 2014 14:33:10 -0600 [thread overview]
Message-ID: <CAE7AAt1djBhTPhUENopjgS-RBBbKBvsFRxmojL71+=0=9rOA1g@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]
Hello y'all,
I am having problems using string-match. I have created a small script
that calls string-match and I get:
/home/ariel/console/mce/tests/./panda.scm:4:9: In procedure module-lookup:
Unbound variable: string-match
If I start guile and then use string-match there is no problem:
scheme@(guile-user)> (string-match "a" "a")
$1 = #("a" (0 . 1))
It also works if I start guile and then load the file:
[ariel@oc6281107537 tests]$ guile
GNU Guile 2.0.9
Copyright (C) 1995-2013 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (load "panda.scm")
#(a (0 . 1))
The file contains:
#!/usr/local/bin/guile \
-e main -s
!#
(display (string-match "a" "a"))
Is there something that I am missing?
thanks,
ariel
Full Error for reference:
[ariel@oc6281107537 tests]$ guile -l panda.scm
Backtrace:
In ice-9/boot-9.scm:
157: 7 [catch #t #<catch-closure 1b2dae0> ...]
In unknown file:
?: 6 [apply-smob/1 #<catch-closure 1b2dae0>]
In ice-9/boot-9.scm:
63: 5 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 4 [eval # #]
In ice-9/boot-9.scm:
2320: 3 [save-module-excursion #<procedure 1dcb940 at
ice-9/boot-9.scm:3961:3 ()>]
3968: 2 [#<procedure 1dcb940 at ice-9/boot-9.scm:3961:3 ()>]
In unknown file:
?: 1 [load-compiled/vm
"/home/ariel/.cache/guile/ccache/2.0-LE-8-2.0/home/ariel/console/mce/tests/panda.scm.go"]
In /home/ariel/console/mce/tests/./panda.scm:
4: 0 [#<procedure 1c8ab00 at
/home/ariel/console/mce/tests/./panda.scm:4:0 ()>]
/home/ariel/console/mce/tests/./panda.scm:4:9: In procedure #<procedure
1c8ab00 at /home/ariel/console/mce/tests/./panda.scm:4:0 ()>:
/home/ariel/console/mce/tests/./panda.scm:4:9: In procedure module-lookup:
Unbound variable: string-match
[-- Attachment #2: Type: text/html, Size: 2948 bytes --]
next reply other threads:[~2014-01-15 20:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-15 20:33 Ariel Rios [this message]
2014-01-15 21:28 ` string-match error 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='CAE7AAt1djBhTPhUENopjgS-RBBbKBvsFRxmojL71+=0=9rOA1g@mail.gmail.com' \
--to=ariel@gnu.org \
--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).