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