www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5782] New: Few things about rdmd

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

           Summary: Few things about rdmd
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2011-03-24 03:35:36 PDT ---
Four things about rdmd build 20100913 (the one present in DMD 2.052). I am not
sure Bugzilla is the right place for this.

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

1) If I give rdmd the name of a file that's not D code, I don't receive any
error:

rdmd foo.exe

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

2) This line of the rdmd help contains a char that's not normally visible in
the Windows shell:

  --eval=code       evaluate code +ل la perl -e (multiple --eval allowed)

I suggest to replace it with something like:

  --eval=code       evaluate code as in perl -e (multiple --eval allowed)

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

3) If I compile and run a normal little D program (here just a HelloWorld),
sometimes it asks me to hit enter after the program run, and sometimes it
doesn't require it:

C:\>rdmd hello.d
HelloWorld!

C:\>rdmd hello.d

C:\>HelloWorld!

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

4) Sometimes rdmd leaves in the directory a map file like:

hello-d-C8F5A6BF039D650FD686DCFB9B208F94.map

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


Nick Sabalausky <cbkbbejeap mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbejeap mailinator.com


--- Comment #1 from Nick Sabalausky <cbkbbejeap mailinator.com> 2011-03-24
14:04:09 PDT ---
Re #2: 
FWIW, on my Windows machine, I get a text-mode-line-drawing symbol followed by
an accented 'a'. But I agree, "as in" would be better.

Re #3:
This already has a bug report and patch: issue 4688

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


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |thecybershadow gmail.com
         Resolution|                            |WORKSFORME


--- Comment #2 from Vladimir Panteleev <thecybershadow gmail.com> 2013-03-10
10:11:03 EET ---
(In reply to comment #0)
 Four things about rdmd build 20100913 (the one present in DMD 2.052). I am not
 sure Bugzilla is the right place for this.
 
 -------------------
 
 1) If I give rdmd the name of a file that's not D code, I don't receive any
 error:
 
 rdmd foo.exe
Seems to work fine now: $ touch foo.exe $ rdmd foo.exe Error: cannot read file foo.exe.d Failed: ^"dmd^" ^"-v^" ^"-o-^" ^"foo.exe.d^" ^"-I.^"
 2) This line of the rdmd help contains a char that's not normally visible in
 the Windows shell:
 
   --eval=code       evaluate code +ل la perl -e (multiple --eval allowed)

 I suggest to replace it with something like:
 
   --eval=code       evaluate code as in perl -e (multiple --eval allowed)
This is fixed (exactly as you suggested) now.
 3) If I compile and run a normal little D program (here just a HelloWorld),
 sometimes it asks me to hit enter after the program run, and sometimes it
 doesn't require it:
 
 C:\>rdmd hello.d
 HelloWorld!
 
 C:\>rdmd hello.d
 
 C:\>HelloWorld!
As Nick said, filed as a separate bug that's presently fixed.
 4) Sometimes rdmd leaves in the directory a map file like:
 
 hello-d-C8F5A6BF039D650FD686DCFB9B208F94.map
I believe this is fixed as well. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 10 2013