guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

string-match error


From: Ariel Rios
Subject: string-match error
Date: Wed, 15 Jan 2014 14:33:10 -0600

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:
address@hidden 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:
address@hidden 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]