* remove final slash from HOME env

This commit is contained in:
pierre 2003-03-14 22:54:43 +00:00
parent 854bbf5535
commit 30043d61f5

View File

@ -166,6 +166,10 @@ begin
Check ('...', CurDir + DirSep + '...');
{$IFDEF UNIX}
S := GetEnv ('HOME');
{ On m68k netbsd at least, HOME contains a final slash
remove it PM }
if S[length(S)]=DirSep then
S:=Copy(S,1,Length(S)-1);
Check ('~', S);
Check ('~' + DirSep + '.', S);
if (Length (S) > 0) and (S [Length (S)] <> DirSep) then S := S + DirSep;