D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10352 - Regression (2.063): --eval is broken in RDMD
Summary: Regression (2.063): --eval is broken in RDMD
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2013-06-13 18:16 UTC by Andrej Mitrovic
Modified: 2013-06-20 14:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2013-06-13 18:16:37 UTC
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 2 github-bugzilla 2013-06-20 14:57:58 UTC
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