GNU bug report logs -
#23943
Guile loads "init.scm" from the current directory
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23943 in the body.
You can then email your comments to 23943 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#23943
; Package
guile
.
(Mon, 11 Jul 2016 07:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alex Kost <alezost <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Mon, 11 Jul 2016 07:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 sent
to
Andy Wingo <wingo <at> pobox.com>
:
You have taken responsibility.
(Mon, 11 Jul 2016 16:08:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Alex Kost <alezost <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 11 Jul 2016 16:08:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 23943-done <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-guile <at> gnu.org
:
bug#23943
; Package
guile
.
(Tue, 12 Jul 2016 07:34:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 23943 <at> debbugs.gnu.org (full text, mbox):
Andy Wingo (2016-07-11 19:07 +0300) wrote:
> 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.
Aha, now I see that "GUILE_LOAD_PATH= guile" adds "" (an empty string)
to %load-path. Thanks for the answer!
--
Alex
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.