D Shell [was Re: A C++ interpreter]

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Mon Aug 13 21:09:17 PDT 2012


On Mon, 13 Aug 2012 17:36:13 +0200
"jerro" <a at a.com> wrote:

> > I probably should make it so it automatically wraps the code in 
> > a main function for even easier and more script like usage.
> 
> Rdmd already has this functionality with the --eval flag. You are 
> supposed to pass the code as a command line parameter, but you 
> can use it with files like this:
> 
> cat - test.d <<< "--eval=" | xargs -0 rdmd
> 
> I've only tried this on Linux.

As a person who's still only half-way a Linux guy, I have to ask: What
the hell is going on in that command?

I understand bits and pieces of it, but my mind's having a hard time
parsing it. Can any of you unix gurus help me out?



More information about the Digitalmars-d mailing list