Ticket #3975 (closed bug: fixed)
filepath: normalise trailing dot
| Reported by: | conrad | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Not GHC |
| Component: | libraries (other) | Version: | 6.12.1 |
| Keywords: | filepath normalise | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Incorrect result at runtime | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

