The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Where did the "~" come from
@ 2020-11-18 22:25 Clem Cole
  2020-11-18 22:41 ` Dave Horsfall
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Clem Cole @ 2020-11-18 22:25 UTC (permalink / raw)
  To: The Eunuchs Hysterical Society

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-19 20:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18 22:25 [TUHS] Where did the "~" come from 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
2020-11-19 20:02     ` Michael Kjörling

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