From: Earnie <ea...@us...> - 2015-02-26 22:44:54
|
> From: Scott Neugroschl > > > I don't understand this. If you use -DMY_MACRO=//usr/local/mypath > > then MSYS simply removes the first / and passes that to the program. Sed > shouldn't be needed. > > Not quite: > > $ cat a.c > FRED > $ c89 -DFRED=/usr/local/fred -E a.c > #line 1 "c:\\Users\\scott_n\\a.c" > C:/MinGW/msys/1.0/local/fred > $ c89 -DFRED=//usr/local/fred -E a.c > #line 1 "c:\\Users\\scott_n\\a.c" > / /usr/local/fred > $ c89 -DFRED='//usr\local\fred' -E a.c > #line 1 "c:\\Users\\scott_n\\a.c" > /usr/local/fred > > > Note that when I use //usr/local/fred I get a leading "/ " on the output. > Only //usr\local\fred gives the proper output. > You should report this in the bug tracker for MSYS. -- Earnie |