Using Debian7, gcc-4.8, gdc-4.8 from the `testing main` debian source.

        import std.stdio;
        import std.process;

        void main()
        {
                string x = executeShell("uname").output;
                writefln(x);
        }

$ gdc test.d -o test

test.d:6: Error: undefined identifier executeShell
/usr/include/d/4.8/std/range.d:611: Error: static assert "Cannot put a char[] into a Appender!(string)" /usr/include/d/4.8/std/format.d:1440: instantiated from here: put!(Appender!(string), char[]) /usr/include/d/4.8/std/format.d:1342: instantiated from here: formatUnsigned!(Appender!(string), char) /usr/include/d/4.8/std/format.d:1316: instantiated from here: formatIntegral!(Appender!(string), ulong, char) /usr/include/d/4.8/std/conv.d:100: ... (7 instantiations, -v to show) ... /usr/include/d/4.8/std/stdio.d:1827: instantiated from here: writefln!(char, )
test.d:7:        instantiated from here: writefln!(string)

Reply via email to