The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: "Greg A. Woods" <woods@robohack.ca>
To: The Unix Heritage Society mailing list <tuhs@tuhs.org>
Subject: Re: [TUHS] Shell Level...
Date: Tue, 21 Jan 2020 15:39:16 -0800	[thread overview]
Message-ID: <m1iu376-0036tPC@more.local> (raw)
In-Reply-To: <2c366d0e-b679-a856-edb3-a9962f58c50b@spamtrap.tnetconsulting.net>

[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

At Tue, 21 Jan 2020 13:46:14 -0700, Grant Taylor via TUHS <tuhs@minnie.tuhs.org> wrote:
Subject: Re: [TUHS] Shell Level...
>
> [1  <text/plain (en-US); windows-1252 (quoted-printable)>]
> On 1/20/20 4:55 PM, Greg A. Woods wrote:
> > I've always just used "set ignoreeof" (first in Csh and later in
> > Ksh), but just in my initial login shell (i.e. set in ~/.login), to
> > prevent ^D from logging me out.
>
> It sounds like you're making your initial / login shell behave
> differently based on the shell level.

More like the other way around -- all sub-shells behave differently
based on the fact they're not login shells.  Note I also considered (and
still consider) all initial shells in each "window" to be a "login"
shell.  In the days of "layers" (e.g. on the DMD5620) I did that by
inspecting the environment to look for clues that the shell was started
by "layers", but ever since X11 took over my life (and my DMDs have been
scrapped and/or put into storage) I've used XTerm's "-ls" option to make
the shell a "real" login shell.

The $LEV (or $SHLVL) value is just an indicator, one that I only ever
used as a visual cue/clue.

--
					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 --]

  reply	other threads:[~2020-01-21 23:39 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 [this message]
2020-01-20 23:43 ` Greg A. Woods

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=m1iu376-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).