소스 검색

* fixed fexpand('..')

peter 27 년 전
부모
커밋
12de31dbe5
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      rtl/linux/linux.pp

+ 5 - 4
rtl/linux/linux.pp

@@ -2662,7 +2662,7 @@ Begin
       getdir(0,temp)
      else
       inc(i);
-     temp:=temp+'/'+copy(path,i,length(path)-i+1);
+     temp:=temp+'/'+copy(path,i,length(path)-i+1)+'/';
    end;    
 {First remove all references to '/./'}
   while pos('/./',temp)<>0 do
@@ -2683,8 +2683,6 @@ Begin
        delete(temp,1,3);      
   until i=0;
 {Remove ending . and / which may exist}
-  if (length(temp)>0) and (temp[length(temp)]='.') then
-   dec(byte(temp[0]));
   if (length(temp)>0) and (temp[length(temp)]='/') then
    dec(byte(temp[0]));
   fexpand:=temp;
@@ -3123,7 +3121,10 @@ End.
 
 {
   $Log$
-  Revision 1.2  1998-04-04 17:07:17  michael
+  Revision 1.3  1998-04-07 12:27:41  peter
+    * fixed fexpand('..')
+
+  Revision 1.2  1998/04/04 17:07:17  michael
   + Fixed AssignStream, it completely refused to work
 
   Revision 1.1.1.1  1998/03/25 11:18:43  root