Path: utzoo!attcan!uunet!husc6!tut.cis.ohio-state.edu!deneb.cis.ohio-state.edu!stellrec From: stellrec@deneb.cis.ohio-state.edu (barry stellrecht) Newsgroups: comp.sys.amiga Subject: Re: Enviroment (was Re: Yea, but can an Amiga Shell do this.... Summary: Another solution, for CSH users. Keywords: multitasking assign Message-ID: <21291@tut.cis.ohio-state.edu> Date: 3 Sep 88 11:52:36 GMT References: <8808232121.AA28517@cory.Berkeley.EDU> <8637@cup.portal.com> <4653@cbmvax.UUCP> Sender: news@tut.cis.ohio-state.edu Organization: The Ohio State University Dept of Computer and Information Science Lines: 33 [ line eater fodder ] In article <4653@cbmvax.UUCP> :In article <8637@cup.portal.com> thad@cup.portal.com writes: :> CLI> assign here: "" :> CLI> cd :> CLI> cd here: :> :>that second CD returns one to the original directory in which the ASSIGN :>was performed. This is very useful in EXECUTE scripts. :... scripts which are not meant to support multitasking, that is. If you :were to run that same script in another window in the meantime, the "here:" :assign would be lost. Of course, it wouldn't be the first Amiga program :with this problem. :-- : -=] Ford [=- : . . (In Real Life: Mike Ditto) :. : , ford@kenobi.cts.com A way which supports multi-tasking much better, if you are using the Dillon/ Drew CSH program would involve the two aliases below (I use them fairly extensively myself): alias savecd "cd | input _oldcd" alias oldcd "cd $_oldcd;unset oldcd" Usage might be like: savecd;cd telecom:; {do stuff} oldcd. I find them quite nice for quickly booting up programs that like their own directory for stuff, without getting my working directory somewhere other than where I want it Barry Stellrecht