Skip to content

Duplicate bug: (see #3975) filepath: normalise trailing dot

This darcs patch modifies the behaviour of normalise to handle trailing dots in a path. The previous behaviour yielded this:

Prelude System.FilePath> normalise "../." "../." Prelude System.FilePath> normalise ".././" ".././" Prelude System.FilePath> normalise ".././.." "../.."

This patch modifies dropDots such that the check for (".":[]) only occurs once for the path, after which a driver function dropDots' is used which skips this check. Hence "." can be removed from the end of a longer path, but a path of just "." is unchanged.

http://www.haskell.org/pipermail/libraries/2010-February/013030.html

Trac metadata
Trac field Value
Version 6.12.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by conrad
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information