aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath/path_plan9.go
AgeCommit message (Collapse)Author
2014-09-08build: move package sources from src/pkg to srcRuss Cox
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
2014-08-22path/filepath: make Abs handle paths like c:a.txt properlyAlex Brainman
Fixes #8145. LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/126440043
2013-02-20path/filepath, os/exec: unquote PATH elements on WindowsPéter Surányi
On Windows, directory names in PATH can be fully or partially quoted in double quotes ('"'), but the path names as used by most APIs must be unquoted. In addition, quoted names can contain the semicolon (';') character, which is otherwise used as ListSeparator. This CL changes SplitList in path/filepath and LookPath in os/exec to only treat unquoted semicolons as separators, and to unquote the separated elements. (In addition, fix harmless test bug I introduced for LookPath on Unix.) Related discussion thread: https://groups.google.com/d/msg/golang-nuts/PXCr10DsRb4/sawZBM7scYgJ R=rsc, minux.ma, mccoyst, alex.brainman, iant CC=golang-dev https://golang.org/cl/7181047
2012-06-30path/filepath: avoid allocation in Clean of cleaned path even on windows ↵Alex Brainman
(fix build) R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6344049
2012-04-27path/filepath: fix typoAnthony Martin
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6117063
2012-02-29path/filepath: steer people away from HasPrefixRuss Cox
The strikes against it are: 1. It does not take path boundaries into account. 2. It assumes that Windows==case-insensitive file system and non-Windows==case-sensitive file system, neither of which is always true. 3. Comparing ToLower against ToLower is not a correct implementation of a case-insensitive string comparison. 4. If it returns true on Windows you still don't know how long the matching prefix is in bytes, so you can't compute what the suffix is. R=golang-dev, r, dsymonds, r CC=golang-dev https://golang.org/cl/5712045
2011-07-19go/build: fixes for windows pathsAlex Brainman
R=golang-dev, mattn.jp, adg CC=golang-dev https://golang.org/cl/4746047
2011-05-29os: fix os.MkdirAll with backslash path separator.Yasuhiro Matsumoto
MkdirAll() need to use isSeparator(). Move primary defines of filepath.Separator/filepath.ListSeparator to os.PathSeparator/os.PathListSeparator. Move filepath.isSeparator() to os.IsPathSeparator(). filepath package refer them from os package. Fixes #1831. R=rsc, alex.brainman CC=golang-dev https://golang.org/cl/4535100
2011-04-03path/filepath: add support for plan9Andrey Mirtchovski
R=paulzhol, ality, r, fhs CC=golang-dev https://golang.org/cl/4316054