Thread overview
[Issue 8791] New: Optlink fails when reading PATH variable and -g is used
Oct 10, 2012
Andrej Mitrovic
Oct 10, 2012
Walter Bright
Oct 10, 2012
Andrej Mitrovic
Oct 14, 2012
Andrej Mitrovic
Oct 14, 2012
klickverbot
Oct 15, 2012
Andrej Mitrovic
October 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791

           Summary: Optlink fails when reading PATH variable and -g is
                    used
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Optlink
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-09 17:42:15 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-10-09 18:23:02 PDT ---
Try enclosing the path in " ".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-09 18:27:51 PDT ---
(In reply to comment #1)
> Try enclosing the path in " ".

Doesn't help.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791


webwraith@fastmail.fm changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webwraith@fastmail.fm


--- Comment #3 from webwraith@fastmail.fm 2012-10-14 16:15:22 PDT ---
Appears to work only if PATH is set to something that has absolutely no spaces in it, regardless of speech marks or quotes

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791



--- Comment #4 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-14 16:38:52 PDT ---
(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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791


klickverbot <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@klickverbot.at


--- Comment #5 from klickverbot <code@klickverbot.at> 2012-10-14 16:45:48 PDT ---
The problem is the plus sign.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791


kekeniro2@yahoo.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kekeniro2@yahoo.co.jp


--- Comment #6 from kekeniro2@yahoo.co.jp 2012-10-14 17:58:49 PDT ---
Probably duplicated with:
  Issue 4831
  Issue 5860

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8791


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #7 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-14 18:01:25 PDT ---
*** This issue has been marked as a duplicate of issue 4831 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------