Hi, I was inspired by cygwin to code my own little shell that allowed you to use ksh or bash commands(haven't decided yet.). Should I go about doing this by using the system() function, or some other way??

Thanks,

Kodiak -

If it's specific to Windows then use the Windows API since that's the purpose of it. Also, are you writing it just to see if you can or because you think there are some things cygwin lacks? I've used cygwin for a while and I find it a pretty decent virtual environment

I think you will have to avoid system() wherever possible because some commands such as set won't work correctly.

I'm writing to see if i can do it... So use the windows
Api?..Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.