[Ecls-list] a bug (or feature?) in (directory) implementation

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Mar 18 16:05:28 UTC 2012


On Thu, Mar 15, 2012 at 11:46 AM, Dima Pasechnik <dimpase+ecl at gmail.com>wrote:

> Below I cut the relevant part, which appears to demonstrate a problem in
> calls like (directory '/A/B/C/*')  which boils down to the fact that is the
> top part (say '/A/B/') of the path contains an unreadable to the user
> directory, then the (directory '/A/B/C/*') returns NIL,
> even though it's perfectly readable to the user (tested on 11.1.1 and on
> 12.**, too)
>

Fixed in local (see below). Will upload a patch later on.

$ ecl -norc
ECL (Embeddable Common-Lisp) 12.2.1
(git:f074dd441f7500f9fd96607443e27d6b6afe04c9)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.
Top level in: #<process TOP-LEVEL>.
> (directory "~/foo/faa/*.*")

(#P"/Users/jjgarcia/foo/faa/lsp.txt")
$ ls ~/foo
ls: foo: Permission denied


-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120318/58872d05/attachment.html>


More information about the ecl-devel mailing list