[fpc-pascal]Re: chdir problem? -- 2nd request

Kuba Ober winnie at hoth.amu.edu.pl
Mon Jan 22 18:50:42 CET 2001

> > There is a program that claims that it can change the current directory
> > under DOS/Unix/Win32 Console (Win9x/NT/2000), Win32 ZShell, Win32 Cygwin,
> > and more.   http://www.xs4all.nl/~waterlan/
> >
> > C Source appears to be available, but I have not looked at this program
> > at all yet.
> It works only with a trick.
> On Dos, the program creates a batch file which is then executed by the
> calling batchfile,
> In bash or any unix shell, it is done using a script function;
> the reason this is so is exactly because there is _no way_ to set the
> working directory of another process programatically.

And for good reason this is so... because there's really no real need to 
change the CD of a process that already runs, and if you're fork'ing a new 
one, it inherits the CD anyway.

People still think DOS-way and expect multiprocessing systems to behave the 
same way...


More information about the fpc-pascal mailing list