home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / st / tech / 6467 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.7 KB  |  36 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!agate!doc.ic.ac.uk!warwick!dcs.warwick.ac.uk!leo
  3. From: leo@dcs.warwick.ac.uk (Leo Hendry)
  4. Subject: Re: chdir in sozobon
  5. Message-ID: <1993Jan4.205115.6372@dcs.warwick.ac.uk>
  6. Sender: news@dcs.warwick.ac.uk (Network News)
  7. Nntp-Posting-Host: granite
  8. Organization: Department of Computer Science, Warwick University, England
  9. References: <1993Jan4.015926.26383@oz.plymouth.edu>
  10. Date: Mon, 4 Jan 1993 20:51:15 GMT
  11. Lines: 23
  12.  
  13. In article <1993Jan4.015926.26383@oz.plymouth.edu> pyr579@oz.plymouth.edu (Technoid) writes:
  14. >Hello,
  15. >
  16. >    I am having difficulty with chdir() is Sozobon 1.33i ( Heat N
  17. >Serve ). It won't change drives. According to the dlibs text file,
  18. >chdir() will change the drive if a drive letter is given to it. I assume
  19. >this means that if I enter "d:\telecomm" for a string, it will ( with
  20. >the proper end slashes added. ) change the current drive to D: and then
  21. >change the directory to \telecomm. The problem is, it does not do this.
  22. >I'm only trying to implement a simple cd command for a mini TOS shell
  23. >and I've got most of the other commands finished. This one, that should
  24. >be easy, doesn't want to work. Any help would be great or if you have a
  25. >working cd command implemented, I'd love to see your code.
  26.  
  27. I've never heard of a chdir() function with this behavior (I had to write
  28. another function to do what you describe) and this is not how a normal cd
  29. command behaves anyway.  Perhaps you read the documentation wrong.
  30.   Note that if you write a separate program that changes the directory it will
  31. appear to do nothing because when you run a program the current directory is
  32. first saved and then restored after the program has run (the same with the
  33. rest of the environment).
  34.  
  35. - Leo
  36.