unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #33165] `load' uses a wrong relative path
@ 2011-04-26 13:20 Ludovic Courtès
  2011-04-26 15:59 ` Mark H Weaver
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ludovic Courtès @ 2011-04-26 13:20 UTC (permalink / raw)
  To: Ludovic Courtès, bug-guile

URL:
  <http://savannah.gnu.org/bugs/?33165>

                 Summary: `load' uses a wrong relative path
                 Project: Guile
            Submitted by: civodul
            Submitted on: Tue 26 Apr 2011 01:20:16 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello!

Consider this session:

#v+
$ mkdir t

$ cd t

t$ touch a.scm

t$ mkdir d

t$ echo '(load "a.scm")' > d/b.scm

t$ guile -l a.scm d/b.scm 
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/ludo/src/kanren-book/t/a.scm
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-LE-8-2.0/home/ludo/src/kanren-book/t/a.scm.go
;;; compiling /home/ludo/src/kanren-book/t/d/b.scm
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-LE-8-2.0/home/ludo/src/kanren-book/t/d/b.scm.go
Backtrace:

[...]

   ?: 0 [primitive-load-path "home/ludo/src/kanren-book/t/d/a.scm"]

ERROR: In procedure primitive-load-path:
ERROR: In procedure primitive-load-path: Unable to find file
"home/ludo/src/kanren-book/t/d/a.scm" in load path
#v-

The relative path computed by `load' above is broken.  Adding a leading `/'
would fix it.

Ludo'.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33165>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-21 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26 13:20 [bug #33165] `load' uses a wrong relative path Ludovic Courtès
2011-04-26 15:59 ` Mark H Weaver
2011-04-29  8:32 ` Andy Wingo
2011-06-17 18:23 ` Andy Wingo
2011-06-18 17:57   ` Ludovic Courtès
2011-06-19 20:16     ` Andy Wingo
2011-06-21 20:51       ` Andy Wingo

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).