From: "Greg A. Woods" <woods@robohack.ca>
To: The Unix Heritage Society mailing list <tuhs@tuhs.org>
Subject: Re: [TUHS] Shell Level...
Date: Mon, 20 Jan 2020 15:43:44 -0800 [thread overview]
Message-ID: <m1itghs-0036tPC@more.local> (raw)
In-Reply-To: <f8fe34ae-e3e3-dfbd-8bc8-15bc58474062@spamtrap.tnetconsulting.net>
[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]
At Sun, 19 Jan 2020 14:22:29 -0700, Grant Taylor via TUHS <tuhs@minnie.tuhs.org> wrote:
Subject: [TUHS] Shell Level...
>
> Have you ever used shell level, $SHLVL, in your weekly ~> daily use of Unix?
I invented my own variant, $LEV, for Ksh, starting before 1993, probably
when I first started using DMD-5620 terminals and layers, though
possibly slightly before that when I first started using Ksh (about 1989
when I bought a used ATT3B2/400 for home use). I used my own $LEV in my
prompt (or the window title, if using a windowing system) just to remind
me if I'd started a sub-shell for some reason, such as in order to
preserve my current working directory and environment.
Early Ksh didn't have $SHLVL, and it's not universal (i.e. POSIX), so
I've never really used $SHLVL itself (though I have very recently added
a hook to set my $LEV from it IFF it is available).
See https://github.com/robohack/dotfiles :-)
--
Greg A. Woods <gwoods@acm.org>
Kelowna, BC +1 250 762-7675 RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com> Avoncote Farms <woods@avoncote.ca>
[-- Attachment #2: OpenPGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
prev parent reply other threads:[~2020-01-20 23:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-19 21:22 Grant Taylor via TUHS
2020-01-19 23:21 ` Thomas Paulsen
2020-01-20 8:15 ` markus schnalke
2020-01-20 8:39 ` Kurt H Maier
2020-01-21 20:42 ` Grant Taylor via TUHS
2020-01-20 19:40 ` Theodore Y. Ts'o
2020-01-20 23:51 ` Terry Jones
2020-01-21 20:44 ` Grant Taylor via TUHS
2020-01-21 23:10 ` Theodore Y. Ts'o
2020-01-20 23:55 ` Greg A. Woods
2020-01-21 20:46 ` Grant Taylor via TUHS
2020-01-21 23:39 ` Greg A. Woods
2020-01-20 23:43 ` Greg A. Woods [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1itghs-0036tPC@more.local \
--to=woods@robohack.ca \
--cc=tuhs@tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).