[Haskell-cafe] Re: File path programme

Aaron Denney wnoise at ofb.net
Mon Jan 31 18:40:35 EST 2005


On 2005-01-31, Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> wrote:
> Peter Simons <simons at cryp.to> writes:
>
>>   http://cryp.to/pathspec/PathSpec.hs
>
>> There also is a function which changes a path specification
>> into its canonic form, meaning that all redundant segments
>> are stripped.
>
> It's incorrect: canon (read "x/y/.." :: RelPath Posix) gives "x",
> yet on Unix they aren't equivalent when y is a non-local symlink
> or doesn't exist.

True, but most people want x when they construct x/y/.., in makefiles,
install scripts, etc.  It's not "OS thinks is the same", and shouldn't
be marketed as such, but it is useful as "what people generally want to
refer to".

-- 
Aaron Denney
-><-



More information about the Haskell-Cafe mailing list