From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3291 invoked from network); 19 Nov 2020 15:51:19 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 19 Nov 2020 15:51:19 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id ABA179B990; Fri, 20 Nov 2020 01:51:16 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 78A6D9B92D; Fri, 20 Nov 2020 01:50:42 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="arfoDv68"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 1B4189B92D; Fri, 20 Nov 2020 01:50:40 +1000 (AEST) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by minnie.tuhs.org (Postfix) with ESMTPS id 1F5199B921 for ; Fri, 20 Nov 2020 01:50:39 +1000 (AEST) Received: by mail-qk1-f175.google.com with SMTP id y197so5750408qkb.7 for ; Thu, 19 Nov 2020 07:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D9wg8o4Lh0RPOXF3vxY3DE+4qyNFwhNNI2kUbGKMq9w=; b=arfoDv68X1h8XGc/CrXjpOC3qyfLuMEd/06vqGflte82LeSffKaoyANVGAeX6OFDgL dgSFBzXDgNkNy9TJ/V9hX97m20DClfTB7bsXtARtpB+LN5cHwQQN9A6+8pXTQghG4n48 Z3rIvOA58PcqS4KiLd9lNt7OInrCPrtL7WVb4+oEdNPl3GkMuJcb8x7WxINyh3WVChsr kAJjs8tJ/RAAfo1ric13blnh7nxqdpkJMQDrvuhncnjPWrt/4PFWVPz013aqA+npONCA 85yguBs50s6f9N/o0jwMzpZS38JH9/k8OP39mnsVpkEQkVCfDeGLs5W7KSQynnSSw+L5 PclA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D9wg8o4Lh0RPOXF3vxY3DE+4qyNFwhNNI2kUbGKMq9w=; b=MoLj4QMt2ilPS/LRJreB4FgzcdIWHTYHkJ+bpEi8/yyixH9Z3aveVdK+UwPOUE87Dn FMbKpPABBY13e8cMpMAygof5zDV8BtHt9/6CqcWb/k8WcLehdzpJO6CWdE0d/r++Uy8R xB4OgP3KXxKkKjV7iCoioYYbvQ81d5GlY4FoKRIirsqcpzQGEv18YqzE9VUxAiNvVza+ nc7Ev0BKTC1ROwZiqWlYJh0QD2p6kwTV4HE3EYkV2Q1jBg4/+ulsfZtuKDnEw/O/IimP +OTGvWFfYh0KfdCk/Lirh//HIpOn4sr0eP6ZA2uYJLzAS+SPyhz+998LqCmy2QAqy5TR YXMQ== X-Gm-Message-State: AOAM532dkHsB2y8vgBY2o6+Ra1n9/pne/hv0EEkCTjpbs4x9gB4z1Sbf YOfy6kJhHr0VOpT4QdwYkKExY6F0eGPyp8XTBZLqxQ== X-Google-Smtp-Source: ABdhPJzSWXDGUkQuRe+LKBYs08iPaLWhPBVDiN9Cqeug36jU6wEiQOzU+weuCDQY9G9H+Nm4b8GLJdSy1wTONnwfSuA= X-Received: by 2002:a37:6307:: with SMTP id x7mr11120082qkb.195.1605801038060; Thu, 19 Nov 2020 07:50:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Thu, 19 Nov 2020 08:50:28 -0700 Message-ID: To: Clem Cole Content-Type: multipart/alternative; boundary="00000000000074392405b477b0a5" Subject: Re: [TUHS] Where did the "~" come from X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --00000000000074392405b477b0a5 Content-Type: text/plain; charset="UTF-8" On Wed, Nov 18, 2020 at 3:27 PM Clem Cole wrote: > 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. > Looking at the ashell sources on the 1BSD tuhs utree viewer suggests that ~ wasn't there yet, but that it was planned: sh.c: ... Features remaining to be fixed up and/or implemented ======== ========= == == ===== == === == =========== ... * Changes to glob to allow ~, prevent too long path, and prevent * perhaps running out of directories. ... Looking at glob.c, there's no ~ nor 126/176/7e in the sources. Editing the cont.a archive directly confirms no ~ or similar constant is present. By 2BSD, it was in sh.glob.c in the 'expand' function. Later versions define TILDE as '~' and used that. V7 had no ~ in the shell, but as you point out uucp there supported ~ for user home directories. V6 didn't have any of this included that I can find. Warner --00000000000074392405b477b0a5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Nov 18, 2020 at 3:27 PM Clem = Cole <clemc@ccc.com> wrote:
<= /div>
Joy's cshell came out as part of 2BSD (w= hich 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 supporte= d the=C2=A0convention and I can not easily=C2=A0un-ar(1) the=C2=A0cont.a=C2= =A0files in the=C2=A01BSD tar image in Warren's archives.
<= /div>

Looking at the ashell sources on the = 1BSD tuhs utree viewer suggests that ~ wasn't there yet, but that it wa= s planned:

sh.c:
...
	Features remaining to be fixed up and/or implemente=
d
	=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D =3D=3D =3D=3D=
=3D=3D=3D =3D=3D =3D=3D=3D =3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
...
 * Changes to glob=
 to allow ~, prevent too long path, and prevent
 * perhaps running out of directories. 
...
Looking at glob.c, there=
9;s no ~ nor 126/176/7e in the sources. Editing the cont.a archive directly=
 confirms no ~ or similar constant is present.
By 2BSD, it was in sh.glob=
.c in the 'expand' function. Later versions define TILDE as '~&=
#39; and used that. V7 had no ~ in the shell, but as you point out uucp the=
re supported ~ for user home directories. V6 didn't have any of this in=
cluded that I can find.

Warner
<= /pre>

--00000000000074392405b477b0a5--