mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 06:06:17 +02:00
* remove final slash from HOME env
This commit is contained in:
parent
854bbf5535
commit
30043d61f5
@ -166,6 +166,10 @@ begin
|
|||||||
Check ('...', CurDir + DirSep + '...');
|
Check ('...', CurDir + DirSep + '...');
|
||||||
{$IFDEF UNIX}
|
{$IFDEF UNIX}
|
||||||
S := GetEnv ('HOME');
|
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 ('~', S);
|
||||||
Check ('~' + DirSep + '.', S);
|
Check ('~' + DirSep + '.', S);
|
||||||
if (Length (S) > 0) and (S [Length (S)] <> DirSep) then S := S + DirSep;
|
if (Length (S) > 0) and (S [Length (S)] <> DirSep) then S := S + DirSep;
|
||||||
|
Loading…
Reference in New Issue
Block a user