Bug 8791 – Optlink fails when reading PATH variable and -g is used

Status
RESOLVED
Resolution
DUPLICATE
Severity
blocker
Priority
P2
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-09T17:42:00Z
Last change time
2017-01-10T01:45:56Z
Keywords
Optlink
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-10-09T17:42:15Z
Minimal test-case on WinXP: test.d: void main() { } $ set PATH=D:\DMD\dmd2\windows\bin;C:\Fake+-Dir $ dmd -g test.d OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Error 118: Filename Expected Path=D:\DMD\dmd2\windows\bin;C:\Fake+-Dir ^ --- errorlevel 1 GTK3 by default installs to C:\Program Files\GTK+-Bundle-3.4.2\bin, which breaks Optlink when compiling with -g.
Comment #1 by bugzilla — 2012-10-09T18:23:02Z
Try enclosing the path in " ".
Comment #2 by andrej.mitrovich — 2012-10-09T18:27:51Z
(In reply to comment #1) > Try enclosing the path in " ". Doesn't help.
Comment #3 by webwraith — 2012-10-14T16:15:22Z
Appears to work only if PATH is set to something that has absolutely no spaces in it, regardless of speech marks or quotes
Comment #4 by andrej.mitrovich — 2012-10-14T16:38:52Z
(In reply to comment #3) > Appears to work only if PATH is set to something that has absolutely no spaces > in it, regardless of speech marks or quotes The first example doesn't have any spaces in it.
Comment #5 by code — 2012-10-14T16:45:48Z
The problem is the plus sign.
Comment #6 by kekeniro2 — 2012-10-14T17:58:49Z
Probably duplicated with: Issue 4831 Issue 5860
Comment #7 by andrej.mitrovich — 2012-10-14T18:01:25Z
*** This issue has been marked as a duplicate of issue 4831 ***