Fixed interpretation and check of :BACK in make-pathname

This commit is contained in:
jgarcia 2007-01-05 18:02:22 +00:00
parent e8f08ac8d4
commit 7992f81741
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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);