www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4688] New: [patch] rdmd/Win: rdmd'ed program's output appears after cmd prompt

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688

           Summary: [patch] rdmd/Win: rdmd'ed program's output appears
                    after cmd prompt
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-08-20
00:26:09 PDT ---
Created an attachment (id=732)
Patch against rdmd r1400

On Windows (XP Pro SP2 32-bit, not sure about other versions):

Expected:
------------------------
C:\myDir>rdmd helloworld.d
Hello, world!

C:\myDir>
------------------------

Actual:
------------------------
C:\myDir>rdmd helloworld.d

C:\myDir>Hello, world!

------------------------

This happens because execv fools the Windows command-line into thinking the
program is done and returning control back to the user.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688



--- Comment #1 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-08-20
00:30:21 PDT ---
Note: The patch also fixes a minor issue where rdmd imports the "scheduled for
deprecation" std.contracts instead of the (apparently) preferred std.exception.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688


Nick Sabalausky <cbkbbejeap mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #732 is|0                           |1
           obsolete|                            |


--- Comment #2 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-08-20
14:10:24 PDT ---
Created an attachment (id=734)
Fixed patch against rdmd r1400

Fixed an issue with the patch, too many backslashes were being escaped.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688


Nick Sabalausky <cbkbbejeap mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #734 is|0                           |1
           obsolete|                            |


--- Comment #3 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-08-21
13:54:45 PDT ---
Created an attachment (id=735)
Re-Fixed patch against rdmd r1400

Another fix for the patch: Double-quotes weren't properly escaped.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 21 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688



--- Comment #4 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-08-24
21:42:18 PDT ---
Note that this bug is not just cosmetic: It causes problems for programs that
launch rdmd through a "system()" call. The system() call will return *before*
the rdmd'ed program runs which causes a (repeatable) race problem.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 24 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688



--- Comment #5 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-09-24
13:58:53 PDT ---
A combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 is here:

http://d.puremagic.com/issues/show_bug.cgi?id=4930

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 24 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #6 from Andrei Alexandrescu <andrei metalanguage.com> 2011-05-14
16:48:33 PDT ---
Fixed in
https://github.com/D-Programming-Language/tools/commit/27bb715ccb93d3dc27530b664f01904503c3153b.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4688


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com


--- Comment #7 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2011-05-22
22:53:54 PDT ---
*** Issue 5600 has been marked as a duplicate of this issue. ***

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