Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • pkg
  • path
  • filepath
  • path_windows_test.go
Find file BlameHistoryPermalink
  • Péter Surányi's avatar
    path/filepath, os/exec: unquote PATH elements on Windows · b4109f80
    Péter Surányi authored Feb 20, 2013
    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
    b4109f80
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7