The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Clem Cole <clemc@ccc.com>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: [TUHS] Where did the "~" come from
Date: Wed, 18 Nov 2020 17:25:59 -0500	[thread overview]
Message-ID: <CAC20D2N56ZE=gizt_wu_ujUn3B4_O=UgGH-HNBNgiCc_-9YTCg@mail.gmail.com> (raw)

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

A couple of my friends from UC Berkeley were musing on another email
thread.    The question from one of them came up: *"I'm teaching the
undergrad OS course this semester  ... Mention where ~ comes."*

This comment begets a discussion among the 4 of us at where it showed up in
the UNIX heritage and it if was taken from somewhere else.

Using the tilde character as a short cut for $HOME was purely a userspace
convention and not part of the nami() kernel routine when it came into
being.  We know that it was supported by Mike Lesk in UUCP and by Bill Joy
in cshell.  The former was first widely released as part of Seventh Edition
but was working on V6 before that inside of BTL.  Joy's cshell came out as
part of 2BSD (which was V7 based), but he had released "ashell" before that
and included it in the original BSD (*a.k.a.* 1BSD) which was for V6 [what
I don't remember is if it supported the convention and I can not easily un-
ar(1) the cont.a files in the 1BSD tar image in Warren's archives.

In our exchange, someone observed suggested that Joy might have picked it
up because the HOME key was part of the tilde key on the ADM3A, which were
popular at UCB [*i.e.* the reason hjkl are the movement keys on vi is the
were embossed on the top of those keys on the ADM3A].  It also was noted
that the ASR-33 lacks a ~ key on its keyboard.  But Lesk definitely needed
something to represent a remote user's home directory because each system
was different, so he was forced to use something.

It was also noted that there was plenty of cross-pollination going on as
students and researchers moved from site to site, so it could have been BTL
to UCB, vice-versa, or some other path altogether.

So two questions for this august body are:

   1. Where did the ~ as $HOME convention come to UNIX?
   2. Did UNIX create the idiom, or was there an earlier system such as
   CTSS, TENEX, ITS, MTS, TSS, or the like supported it?

[-- Attachment #2: Type: text/html, Size: 4002 bytes --]

             reply	other threads:[~2020-11-18 22:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 22:25 Clem Cole [this message]
2020-11-18 22:41 ` Dave Horsfall
2020-11-19  0:44   ` George Michaelson
2020-11-19 13:45     ` Ron Natalie
2020-11-19 16:16     ` Chet Ramey
2020-11-19 15:50 ` Warner Losh
2020-11-19 17:22 ` Mary Ann Horton
2020-11-19 18:43   ` Clem Cole
2020-11-19 20:02     ` Michael Kjörling

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='CAC20D2N56ZE=gizt_wu_ujUn3B4_O=UgGH-HNBNgiCc_-9YTCg@mail.gmail.com' \
    --to=clemc@ccc.com \
    --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).