James Miller Wrote:
> On 29 February 2012 20:21, Jos van Uden <user@domain.invalid> wrote: > > On 29-2-2012 7:06, James Miller wrote: > >> > >> On 29 February 2012 18:51, jic<cabr...@wrc.xerox.com> Â wrote: > >>> > >>> > >>> Greetings! > >>> > >>> I have this program, > >>> > >>> import std.process : system; > >>> import std.stdio; > >>> int main(char[][] args) > >>> { > >>> Â char[] cmd; > >>> > >>> Â for (int i=1;i<args.length;i++) > >>> Â { > >>> Â Â cmd ~= args[i] ~ " "; > >>> Â } > >>> Â writefln(cmd); > >>> Â return(1); > >>> } > >>> > >>> if I compile it and run it this way, > >>> > >>> test 1! 2@ 3& Â 4# > >>> > >>> the result is > > > > > >> > >> If you are on Windows, then I don't know why this is happening. > > > > > > On windows the ampersand also has a special meaning. In that case > > try the carrot ^ to escape > > > > test 1! 2@ 3^& Â 4# > > > > Jos > > > > Today I Learned that windows has insane escaping. > Me too. I tried escaping it with the wonder-working \, but that didn't work. This does work. Weird stuff... Thanks all.