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

James_Wilson at i2.com James_Wilson at i2.com
Fri Jan 5 17:51:41 CET 2001

> Well, in a multiprocessing enviornment there's no
> permanent dir as all processes run separate. When
> you change dir for one process, it cannot affect
> others as it would (think about it) wreak havoc with
> all others.

No permanent dir? Huh? I can jump to a DOS prompt, type CD\dirname and have
the command interpreter change directories for me. I don't understand how
that could wreak any havoc.

> How process A which forked process B should know that
> process B's chdir's should affect it as well? Keep in
> mind that in Linux and Win32 to certain extent, processes
> have parent-child relationships, and in Linux the ultimate
> parent is init. You wouldn't want your chdir to change
> init's wd, do you?

> It's not a brokennes, it's a feature. DOS is broken in
> this respect, pal.

I suppose it's a matter of perspective. Personally, if I issue a chdir
command I'd like to have it actually change the directory, buddy.


More information about the fpc-pascal mailing list