Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!wang!currier From: currier@wang.UUCP (Ronald Currier) Newsgroups: comp.sys.amiga.tech Subject: Re: PushDir/PopDir available? Keywords: utility push pop AMigaDOS Message-ID: <664@wang.UUCP> Date: 15 Nov 89 18:09:00 GMT References: <144@tw-rnd.SanDiego.NCR.COM> Organization: Wang Labs, Lowell MA Lines: 20 johnl@tw-rnd.SanDiego.NCR.COM (John Lindwall) writes: >Has anyone out there written PushDir and PopDir utilities? These are CLI- >type utilities that I've gotten used to with MSDOS (At work OK?) and Unix. >They work like this: You type "PushDir" and the current directory is saved >onto a stack. You CD all over the place for a while, and when you want to >return to your original directory you type "PopDir". >If not, I'd like to take a stab at writing them. I'm new to CLI internals >so I'd appreciate any help. I assume the (or Shell) CLI has a lock on its >current directory. When "PushDir" is called can I just duplicate this lock >in a data structure? When "PopDir" is called ,can I just Unlock the current >dir lock, and lock the saved lock? (Heh heh. Look at how naive I am). Yes they are available because I wrote a set. I don't know if they work under 1.3 or not however, because I switched to using Bill Hawes WSHELL which provides the same service. What you suggest is basically correct as I remember it. If you are interested in the code, let me know and I will send it to you. - Ron (wang!pensoft!currier)