[LUNI] Remembering which shell (not a good explaination)
Joe Digilio
jdigilio at earth.northwestern.edu
Fri Jun 13 10:19:26 CDT 2003
$SHLVL might be what you're looking for. It works well for me in tcsh, but
in bash it doesn't seem to be quite so consistent (but then I rarely use
bash so I could be wrong).
Joe
On Fri, 13 Jun 2003, Jay Strauss wrote:
> Xterm. I always su-ing and I get a few shells deep. Then at some point I
> start exiting (trying to get back to my original). Many times I'll exit one
> too many times and my window will close.
>
> Anyone have a good idea how I could tell that I'm back to my original xterm
> shell (that was lanched from an ssh shell)?
>
> Jay
>
> ______________________________________________________________________
> Linux Users Of Northern Illinois - Technical Discussion
> luni at luni.org
> http://luni.org/mailman/listinfo/luni
>
--
.........................................................
Joe Digilio jdigilio at earth.northwestern.edu
Northwestern University - Center for Planetary Sciences
1850 Campus Dr, Locy Hall 309, Evanston, IL 60208-2150
Phone: 847.491.3459 Fax: 847.491.8060
.........................................................
More information about the luni
mailing list