D with CygWin

unDEFER via Digitalmars-d digitalmars-d at puremagic.com
Sun Dec 4 11:40:18 PST 2016


DONE!!!

=======================================
$ cat try.d
import std.stdio;
import std.string;
import cygwin.std.file;
import cygwin.loader;

void main()
{
         CygwinInit();

         foreach (string name; dirEntries("/", SpanMode.shallow))
         {
                 writefln(name);
         }
}
=======================================

$ ./try.exe
/bin
/Cygwin-Terminal.ico
/Cygwin.bat
/Cygwin.ico
/dev
/etc
/home
/lib
/sbin
/tmp
/usr
/var
/proc
/cygdrive


The sources of "cygwin" package for D will be available as part 
of my unDE project soon.


More information about the Digitalmars-d mailing list