unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#23739: Unexpected behavior of 'add-to-load-path'.
@ 2016-06-10 12:17 Mathieu Lirzin
  2016-06-10 13:41 ` tomas
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Lirzin @ 2016-06-10 12:17 UTC (permalink / raw)
  To: 23739

Hello,

I have noticed something that doesn't feel right when using
‘add-to-load-path’.

$ cat test.scm
--8<---------------cut here---------------start------------->8---
(define old %load-path)
(add-to-load-path "foo")
(pk %load-path)
(pk old)
--8<---------------cut here---------------end--------------->8---

first run:

$ guile test.scm
--8<---------------cut here---------------start------------->8---
;;; [Compilation]
;;; (("foo" "foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))

;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))
--8<---------------cut here---------------end--------------->8---

next runs:

$ guile test.scm
--8<---------------cut here---------------start------------->8---
;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))

;;; (("/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))
--8<---------------cut here---------------end--------------->8---

each time test.scm is recompiled the first result reappears.  This has
been tested with Guile 2.0.11 and Guile master.

Thanks,

-- 
Mathieu Lirzin





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

end of thread, other threads:[~2016-07-11  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10 12:17 bug#23739: Unexpected behavior of 'add-to-load-path' Mathieu Lirzin
2016-06-10 13:41 ` tomas
2016-06-10 15:19   ` Mathieu Lirzin
2016-07-11  8:03     ` Alex Kost
2016-07-11  9:35       ` Mathieu Lirzin

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