TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Francois Thunus
from: Jonathan de Boyne Pollard
date: 1995-03-29 08:18:12
subject: dossetcurrentdir

ZZ>
  > I always end up in the starting directory ?????
ZZ>

  Compare and contrast :

  DOS semantics :

      For each drive on the system there is one current directory, that
      is shared by all processes.  Change this current directory in a
      child process and it is changed when you return to the parent
      process.

  OS/2 semantics :

      For each drive on the system each individual process has a current
      directory.  Children inherit their current directories from their
      parents when they are started, but changing the current directory
      in the child does not affect the parent's current directory at
      all.  Only the process itself can change its current directories
      (the only special case is for removable drives, where the current
      directory can revert to the root if the user changes the disc).

  Why the difference ?

  Well, OS/2 has almost exactly the same current directory semantics as
  "big boy" operating systems like UNIX (except that UNIX has no notion
  of multiple drives), which all have the concept of processes as units
  of ownership (i.e. a process "owns" a set of current directories in
  much the same way that it "owns" a set of open file handles).

  Whereas although DOS copied its hierarchical filesystem model from
  UNIX (well ... actually XENIX) back in the DOS version 2.x days, it
  never copied the current directory semantics, and unfortunately its
  rather unconventional behaviour became a feature and was never fixed.

  Actually, a lot of these things that are different between DOS and
  "real" operating systems can be traced to the fact that the process
  model, including the idea of processes as units of ownership, is
  malformed in DOS.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 2.02
* Origin: DoNoR/2,Woking UK (44-1483-722344) (2:440/4)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 440/4 141/209 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.