Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ncrlnk!ncr-sd!tw-rnd!johnl From: johnl@tw-rnd.SanDiego.NCR.COM (John Lindwall) Newsgroups: comp.sys.amiga.tech Subject: PushDir/PopDir available? Keywords: utility push pop AMigaDOS Message-ID: <144@tw-rnd.SanDiego.NCR.COM> Date: 14 Nov 89 00:56:57 GMT Organization: NCR Corporation - Distributed Systems Lab Lines: 18 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). Thanks for any help! -- John Lindwall | "Not my employer opinions; mine" johnl@tw-rnd.SanDiego.NCR.COM | a man, a plan, a beer, reeban alpa nama ----------------------------------+--------------------------------------------