GNU bug report logs - #23943
Guile loads "init.scm" from the current directory

Previous Next

Package: guile;

Reported by: Alex Kost <alezost <at> gmail.com>

Date: Mon, 11 Jul 2016 07:45:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andy Wingo <wingo <at> pobox.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23943: closed (Guile loads "init.scm" from the current directory)
Date: Mon, 11 Jul 2016 16:08:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 11 Jul 2016 18:07:29 +0200
with message-id <87h9bw40qm.fsf <at> pobox.com>
and subject line Re: bug#23943: Guile loads "init.scm" from the current directory
has caused the debbugs.gnu.org bug report #23943,
regarding Guile loads "init.scm" from the current directory
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23943: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23943
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alex Kost <alezost <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: Guile loads "init.scm" from the current directory
Date: Mon, 11 Jul 2016 10:44:36 +0300
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


[Message part 3 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Alex Kost <alezost <at> gmail.com>
Cc: 23943-done <at> debbugs.gnu.org
Subject: Re: bug#23943: Guile loads "init.scm" from the current directory
Date: Mon, 11 Jul 2016 18:07:29 +0200
On Mon 11 Jul 2016 09:44, Alex Kost <alezost <at> gmail.com> writes:

> 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

Your invocation does not unset GUILE_LOAD_PATH and
GUILE_LOAD_COMPILED_PATH, but rather *sets* them to contain only one
element, the current directory.  Use "unset" or similar to unset these
variables.

Andy


This bug report was last modified 9 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.