Problem with rdmd
anonymous
anonymous at example.com
Fri Aug 30 00:56:13 PDT 2013
On Friday, 30 August 2013 at 07:39:41 UTC, eles wrote:
> On Linux 64
>
> $chmod +x htest
> $cat ./htest
> #!/usr/bin/env rdmd
> import std.stdio;
>
> void main() {
> writeln("hello world!");
> }
>
> then:
>
> $./htest
> Error: cannot read file ./htest.d
> Failed: 'dmd' '-v' '-o-' './htest.d' '-I.'
>
> OTOH:
>
> $cp htest htest.d
> $./htest.d
> hello world!
>
> It seems that rdmd expects the script to bear the .d extension.
> This is not a very good choice
yup
[...]
>
> A workaround for this?
ln htest htest.d
More information about the Digitalmars-d-learn
mailing list