New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 590686 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Passing absolute path to GN command on MSYS shell doesn't work

Project Member Reported by tmonius...@opera.com, Feb 29 2016

Issue description

OS: Windows

1. Open Git Bash or other MSYS shell.
2. Run GN command that requires passing a path. Give an absolute path. For instance:
   gn refs out/Debug "/C:/foo/bar/*"

Expected result:
Specified path should be accepted as a valid GN-style absolute path.

Actual result:
GN reports an error:
  ERROR Bad absolute path.
  Absolute paths must be of the form /C:\ but this is "C:/foo/bar/*".

The root cause is that MSYS shells convert POSIX paths before passing them to Windows native programs. It means that the leading slash character is removed from path before it's passed to GN. See http://www.mingw.org/wiki/Posix_path_conversion

 
Cc: brettw@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 7 2016

Status: Fixed (was: Untriaged)

Sign in to add a comment