Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!dsac.dla.mil!dsacg3.dsac.dla.mil!nto0302 From: nto0302@dsacg3.dsac.dla.mil (Bob Fisher) Newsgroups: comp.unix.questions Subject: Re: csh levels Message-ID: <2917@dsacg3.dsac.dla.mil> Date: 6 Feb 91 16:43:43 GMT References: <1991Feb5.000455.9976@massey.ac.nz> Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 15 From article <1991Feb5.000455.9976@massey.ac.nz>, by news@massey.ac.nz (USENET News System): > Let's assume a csh invoked from a csh. How do keep track of how far down > the track, one is? Let's say one has recursively invoked csh, it should be > possible to discover how far down one is. How does one do it? The following prefixes a "." to the prompt each time you invoke a new C shell. You get a visual reminder each time you get your prompt. set prompt="${LEVEL} %! => " setenv LEVEL ".${LEVEL}" -- Bob Fisher US Defense Logistics Agency Systems Automation Center DSAC-TOL, Box 1605, Columbus, OH 43216-5002 614-238-9071 (AV 850-9071) bfisher@dsac.dla.mil osu-cis!dsacg1!bfisher