Georg Wrede wrote: > 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.
Ray, when Cygwin asks if you want to use MSDOS newlines, you say YES! Of course, then it chokes on anything extracted from a tarball... -- Daniel
