Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
December 14, 2017 [Issue 17985] Implement -stdin for rdmd | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17985 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx --- Comment #1 from hsteoh@quickfur.ath.cx --- Doesn't rdmd already have --eval for this purpose? Of course, being able to read from stdin has its own value (e.g., run rdmd on output produced by some code generating program via stdin, without needing to create a temporary file). -- |
December 24, 2017 [Issue 17985] Implement -stdin for rdmd | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17985 greenify <greeenify@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greeenify@gmail.com --- Comment #2 from greenify <greeenify@gmail.com> --- With 2.078.0 DMD will support `cat foo.d | dmd -run -` which is probably what the creator was looking for? -- |
December 25, 2017 [Issue 17985] Implement -stdin for rdmd | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17985 --- Comment #3 from hsteoh@quickfur.ath.cx --- No, this issue is asking for rdmd to support reading from stdin, not dmd. -- |
December 25, 2017 [Issue 17985] Implement -stdin for rdmd | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17985 --- Comment #4 from Andre <andre@s-e-a-p.de> --- It's great dmd -run supports now -stdin. Thanks a lot. That is viable workaround. I would like to keep this issue open to get the same functionality for rdmd, because: - rdmd is the advertised tool to work with D in a script like way - dmd -run is a less knower argument. Most developers will try `cat foo.d | rdmd -`. Another benefit is, I always write the run argument wrong "--run". Be able to just write `...| rdmd -` is convenient -- |
December 28, 2017 [Issue 17985] Implement -stdin for rdmd | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17985 --- Comment #5 from hsteoh@quickfur.ath.cx --- One advantage `echo ... | rdmd -` has over `echo ... | dmd --run -` is that rdmd inserts a bunch of standard imports into the code, so that you don't have to keep typing `import std.stdio; ...` in every echo command. So yes, this is still a valid ER. -- |
December 28, 2017 [Issue 17985] Implement -stdin for rdmd | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17985 --- Comment #6 from greenify <greeenify@gmail.com> --- Fair enough. BTW rdmd doesn't add imports by defaults - only `rdmd --eval <string>` does. -- |
June 14, 2019 [Issue 17985] Implement -stdin for rdmd | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17985 Andre <andre@s-e-a-p.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #7 from Andre <andre@s-e-a-p.de> --- As rdmd is deprecated, I will close this issue. In the meantime this feature was also added to dub. -- |
Copyright © 1999-2021 by the D Language Foundation