🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2115

PushDir/PopDir available?

#2115
From: John Lindwall
Date: Tue, 14 Nov 1989 00:56
18 lines
1437 bytes
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
----------------------------------+--------------------------------------------
Technical Details
Message-ID: <144@tw-rnd.SanDiego.NCR.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ncrlnk!ncr-sd!tw-rnd!johnl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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