chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #133: (require 'id) may load executable "id"


From: Chicken Trac
Subject: [Chicken-janitors] #133: (require 'id) may load executable "id"
Date: Sat, 28 Nov 2009 00:34:24 -0000

#133: (require 'id) may load executable "id"
----------------------------+-----------------------------------------------
 Reporter:  zbigniew        |       Owner:       
     Type:  defect          |      Status:  new  
 Priority:  minor           |   Milestone:       
Component:  core libraries  |     Version:  4.3.x
 Keywords:                  |  
----------------------------+-----------------------------------------------
 There is a problem with (require) that is admittedly rare.  If you are in
 a directory:
 $ ls
 foo foo.so

 attempting to (require 'foo) will load the "foo" executable instead of
 "foo.so".  However, in the case below:
 $ ls
 foo

 attempting to (require 'foo) correctly results in an error.

 The reason is that ##sys#find-extension returns "foo" in both cases and
 then ##sys#load attempts to load the literal path before appending any .so
 or .scm extension.  That works unless an executable is in the way.  The
 root cause is that find-extension knows the exact path but doesn't pass
 that on to load.

 Priority minor because this shouldn't affect installed extensions, just
 development files in the current directory.

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/133>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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