]> Cypherpunks repositories - gostls13.git/commit
filepath: Abs must always return a clean path
authorGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 31 May 2011 01:28:59 +0000 (22:28 -0300)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 31 May 2011 01:28:59 +0000 (22:28 -0300)
commit463f478dbb2a502b265c08e0eff1b3334a1bfcf9
tree284eae54eeb8f9c7c0f21edea81651554b0048f4
parent0de328edd63d8e85588309982ce86948548db96b
filepath: Abs must always return a clean path

When I was first coding Abs, I wondered if people wouldn't
expect the path to be consistently clean, even if the path
passed in was already absolute.

CL 4524078 has a potential problem based on exactly that
assumption, so it feels like this behavior is indeed the
most useful and least surprising.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4548074
src/pkg/path/filepath/path.go
src/pkg/path/filepath/path_test.go