patch applied (packages/filepath): normalise trailing dot

Ian Lynagh igloo at earth.li
Sat Jan 8 14:40:55 CET 2011


Thu Dec  2 22:04:44 PST 2010  Conrad Parker <conrad at metadecks.org>
  * normalise trailing dot
  
  This is version 2 of a patch for ticket #3975
  
  This patch modifles normalise to treat paths with a trailing dot as the
  corresponding directory: the trailing . is stripped, and the pathSeparator
  is appended to the result of joining path components.
  
  The special case of all path components being "." is handled first, replacing
  the existing special case test for paths with a leading dot. Dots are now
  dropped consistently for all path components.
  
  Additional tests are provided for:
  
      normalise "./." == "./"
      normalise "bob/fred/." == "bob/fred/"
  

    M ./System/FilePath/Internal.hs -4 +13

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=packages/filepath;a=darcs_commitdiff;h=20101203060444-4b390-27a2dff9e22ff29236ded6ab72bc32571b453438.gz



More information about the Cvs-libraries mailing list