chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] add pathname-expand


From: Felix Winkelmann
Subject: Re: [Chicken-hackers] [PATCH] add pathname-expand
Date: Mon, 11 Nov 2013 09:38:58 +0100 (CET)

From: Peter Bex <address@hidden>
Subject: Re: [Chicken-hackers] [PATCH] add pathname-expand
Date: Sat, 9 Nov 2013 17:06:15 +0100

> On Sat, Nov 09, 2013 at 03:59:58PM +0000, Mario Domenech Goulart wrote:
>> Attached you can find an attempt to implement pathname-expand according
>> to the following assumptions:
>> 
>> * when no user home directory can be determined, assume "/"
>> 
>> * the home directory may change along the program execution
>> 
>> * use the HOME environment variable instead of `user-information' on
>>   non-Windows systems to determine the home directory.  On Windows, use
>>   HOMEPATH or USERPROFILE.
>> 
>> * use `user-information' on non-Windows to determine the home directory
>>   of other users (~user syntax).  On windows, the ~user syntax only
>>   works if user is the same as the value of the USERNAME environment
>>   variable.  I don't know a way to get information about the home
>>   directory of other users.
>> 
>> * expands both ~/foo and ~\foo on Windows
>> 
>> * expands ~~ at the beginning of paths to (or (repository-path) ".")
> 
> Our mails crossed.  I think all these things are good, except for
> the last one.  It adds needless complication and will cause ambiguity
> with UNIX users whose names start with a tilde.

I basically agree with Peter here, even though having a username
starting with "~" is a bit silly...


felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]