Boost.ScopeExit based on D's scope(exit)

Georg Wrede georg.wrede at iki.fi
Wed Mar 4 14:30:14 PST 2009


Walter Bright wrote:
> Georg Wrede wrote:
>> And now a major gripe: I have just spent *half a day* trying to figure 
>> out what's wrong when I try to use shebang with rdmd. I was basically 
>> using hello.d with a shebang. And with rdmd I got this peculiar error 
>> message:
>>
>> .d'nnot read file '
>> /usr/local/digitalmars/dmd1040/linux/bin/rdmd: Couldn't compile or 
>> execute ./numma.d.
>>
>> Just now I figured it out: numma.d was a copy of hello.d, which of 
>> course has Windows line endings. Aaaaaaaaaaaaaaaarrrrghhhhhh!
> 
> 
> Is that a bug in rdmd or elsewhere? We should as far as possible work 
> seamlessly with different line endings.

No, it's bash having a problem.

And I wouldn't make a bug report, it's too much to ask that all of linux 
is made msdos-file proof. :-)

The shebang stuff stumbles on a ^M at the end. I tested it without rdmd 
and got the same problem.


More information about the Digitalmars-d-announce mailing list