delorie.com/archives/browse.cgi | search |
> From: "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com> > Date: Sun, 05 Sep 2004 06:17:39 GMT > > I am checking how bash can call date.exe correctly even if it doesn't > have the built-in command. Your answer below might answer the qusetion > since system() in djgpp won't call call date.exe first. Bash will call date.exe _because_ it doesn't have the built-in command `date'. > > The DJGPP version of `system' should have found date.exe first. And > > we don't have `createprocess' in DJGPP. Are you at all using DJGPP? > > I use both djgpp and VC++. system() in VC++ will call date.exe first if > found. Thanks. Actually, it should be the other way around: VC++ always calls the shell, so the built-in `date' command will be invoked, while the DJGPP implementation of `system' will first look for an external date.exe and only if not found, will call the shell built-in. If this doesn't work for you, please present a short test program that can be compiled and run to reproduce your problem.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |