The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Clem Cole <clemc@ccc.com>
To: Mary Ann Horton <mah@mhorton.net>
Cc: TUHS main list <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] Where did the "~" come from
Date: Thu, 19 Nov 2020 13:43:51 -0500	[thread overview]
Message-ID: <CAC20D2MAhZvDP7dXeVVqV3FHGHi95VUSXYD3HBXYaiAHjKCxqQ@mail.gmail.com> (raw)
In-Reply-To: <4f9b86c5-57e6-180f-6f07-6995763b07ff@mhorton.net>

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

I had always thought that also until Pressotto pointed out the Lesk had
used it for UUCP which was running around Bell before Seventh Edition.  But
... given Bill talked about it for shell in his comments, as Warner points
out, that would have been before UUCP arrived at UCB -- so I don't think it
was from Lesk unless someone like Ken had mentioned it, or he knew about it
from another source (such as MTS from which Joy had learned/used as an
undergrad before UNIX).

As you said, Bill had an ADM3A at home (I had an H19 in those days), but as
you knew too well, there were a ton of different terminals at UCB --
whichever was cheapest usually had a run of popularity :-)  So the thought
HOME keycap = home directory also is quite possible.

Of course, Mike and Bill certainly could have come up with it
independently but to me, it seems like the chance of both using the same
char is really unlikely.   IIRC a tilde keycap was on the ASR-37 keyboard
but frankly, I don't remember, and can't find a pic of the keyboard detail,
plus the LCM+L is closed right now for CV-19 reasons so it's hard to check.



On Thu, Nov 19, 2020 at 12:23 PM Mary Ann Horton <mah@mhorton.net> wrote:

> I first saw ~ as part of csh. Bill had an adm3a at home (which is why HJKL
> in vi) but there was a variety of terminals at Berkeley. I assumed ~ was
> Bill's idea.
>
>     Mary Ann
> On 11/18/20 2:25 PM, Clem Cole wrote:
>
> 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: 7149 bytes --]

  reply	other threads:[~2020-11-19 18:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 22:25 Clem Cole
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 [this message]
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=CAC20D2MAhZvDP7dXeVVqV3FHGHi95VUSXYD3HBXYaiAHjKCxqQ@mail.gmail.com \
    --to=clemc@ccc.com \
    --cc=mah@mhorton.net \
    --cc=tuhs@minnie.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).