Bug 10352 – Regression (2.063): --eval is broken in RDMD

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-13T18:16:00Z
Last change time
2013-06-20T14:58:12Z
Keywords
pull
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-06-13T18:16:37Z
2.062 $ rdmd --force --eval="writeln(1)" > 1 2.063 $ rdmd --force --eval="writeln(1)" > rdmd build 20130514 > Usage: rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]... > Builds (with dependents) and runs a D program. > Example: rdmd -release myprog --myprogparm 5 > > Any option to be passed to the compiler must occur before the program name. In > addition to compiler options, rdmd recognizes the following options: > --build-only just build the executable, don't run it > --chatty write compiler commands to stdout before executing them > --compiler=comp use the specified compiler (e.g. gdmd) instead of dmd > --dry-run do not compile, just show what commands would be run > (implies --chatty) > --eval=code evaluate code as in perl -e (multiple --eval allowed) > --exclude=package exclude a package from the build (multiple --exclude allowed) > --force force a rebuild even if apparently not necessary > --help this message > --loop assume "foreach (line; stdin.byLine()) { ... }" for eval > --main add a stub main program to the mix (e.g. for unittesting) > --makedepend print dependencies in makefile format and exit > --man open web browser on manual page > --shebang rdmd is in a shebang line (put as first argument)
Comment #1 by nilsbossung — 2013-06-15T14:43:14Z
Comment #2 by github-bugzilla — 2013-06-20T14:57:58Z
Commit pushed to master at https://github.com/D-Programming-Language/tools https://github.com/D-Programming-Language/tools/commit/01cdc330a433d654a55f8d52420f796863c34e6c Merge pull request #66 from NilsBossung/10352 fix Issue 10352 - Regression (2.063): --eval is broken in RDMD