csh levels
Bob Fisher
nto0302 at dsacg3.dsac.dla.mil
Thu Feb 7 03:43:43 AEST 1991
>From article <1991Feb5.000455.9976 at massey.ac.nz>, by news at 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 at dsac.dla.mil osu-cis!dsacg1!bfisher
More information about the Comp.unix.questions
mailing list