bug-guile
[Top][All Lists]
Advanced

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

bug#23943: Guile loads "init.scm" from the current directory


From: Alex Kost
Subject: bug#23943: Guile loads "init.scm" from the current directory
Date: Mon, 11 Jul 2016 10:44:36 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hello.  If you start guile from a directory that contains "init.scm"
file, it will be loaded.  Try this recipe (GUILE_..._PATH are unset for
a pure experiment):

cd /tmp
echo foo > init.scm
GUILE_LOAD_COMPILED_PATH= GUILE_LOAD_PATH= guile -q

And it fails with this error:

  guile: uncaught throw to unbound-variable: (#f Unbound variable: ~S (foo) #f)
  Cannot exit gracefully when init is in progress; aborting.
  Aborted (core dumped)

I'm not sure I understand it right from the commentary in "init.c"[1],
but I think this behavior is not intended, or is it?

[1] http://git.savannah.gnu.org/cgit/guile.git/tree/libguile/init.c#n238

-- 
Alex





reply via email to

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