mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-02 07:30:55 -08:00
Fixed interpretation and check of :BACK in make-pathname
This commit is contained in:
parent
e8f08ac8d4
commit
7992f81741
2 changed files with 3 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ ECL 1.0:
|
|||
double-float.
|
||||
|
||||
- MAKE-PATHNAME should remove all occurrences of single dots "." in physical
|
||||
pathnames.
|
||||
pathnames and does not interpret the directory component :BACK properly.
|
||||
|
||||
* Unicode:
|
||||
|
||||
|
|
|
|||
|
|
@ -77,9 +77,9 @@ destructively_check_directory(cl_object directory, bool logical)
|
|||
item = nth(i-1, directory);
|
||||
if (item == @':absolute' || item == @':wild-inferiors')
|
||||
return @':error';
|
||||
if (i > 2)
|
||||
if (i >= 2)
|
||||
CDR(nthcdr(i-2, directory)) = CDR(ptr);
|
||||
} if (item == @':up') {
|
||||
} else if (item == @':up') {
|
||||
if (i == 0)
|
||||
return @':error';
|
||||
item = nth(i-1, directory);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue