From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 7eae6259 for ; Sun, 4 Aug 2019 20:43:06 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 747AD9BB5F; Mon, 5 Aug 2019 06:43:05 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 9D2F59BB39; Mon, 5 Aug 2019 06:42:50 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="I+UjKEU5"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 5686A9BB39; Mon, 5 Aug 2019 06:42:48 +1000 (AEST) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by minnie.tuhs.org (Postfix) with ESMTPS id 9E7649BB38 for ; Mon, 5 Aug 2019 06:42:47 +1000 (AEST) Received: by mail-lj1-f170.google.com with SMTP id r9so77458772ljg.5 for ; Sun, 04 Aug 2019 13:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u+1CEDkVG/Los/9NiDZ3qq5wA2i6uu0I+Xxb76Al7sY=; b=I+UjKEU5ZZAahTvoeEGYY0ieBBUXH5dn/pC3RfB0aSyRghdSdYJmvXL2QJGdvHq3oj DIH6BaaRWnlaginObTD8E4LoGsOFJVXVjfnD1mIbtw1E+EMjzIamVhrq4E0rfl4k5pE7 bUH2AReqeuvAR9DWq8MxL+EZgmxdxPVJ5tVeWMov8YwjT6rB8oOfuSJUZaSTC0xzjwmS 2Wv6g6uM0tuWqXik22JoCICCV18aZ4WmUtBCaTpoIwxRRhClcI0/fMg8FM7hGVTrNJZx HkjwkKARasEdXq/3Gf/74vNhKiN7hoAWlMAaiT3uGdHg/GqQGTAn17i9Yov6BVx6OgK/ eTNg== 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=u+1CEDkVG/Los/9NiDZ3qq5wA2i6uu0I+Xxb76Al7sY=; b=F8hh9SlppAb+ZwS/ioWmGV6Vte+31TXfOgfEOLsIe8gCGtZfk5E8evnLTh8i77xGNP feDNWJY0ECmqiHP7rV7fitss7t+21Zjk1Yz9Pct78vS1XMSXU3TYnPv3dUYqUoVzwqL2 nwO/QUJeIKNZL6REs+lZa6w0iKeS70Pb6HSkKXHeSnNsEnIK5kbylc0u9rDF/jR6tZKV IWWs9a1TjAVjI3EM+9mHHhjUoVOUWEug2QL6JjrDMHKlumIuQLY7yjd2WyW/QXRShZGQ WlnlEdOcTtXcfM8yV9XT/bj2xaJ8Q/ownwXGvfuGZRQSTlMA1b8Zi0dz8cajPs+u1Y4D c8BQ== X-Gm-Message-State: APjAAAWANGoCNdCPWxDac187OasCaBuHuC3bX/rK4+hMflTyy+b6gMqF 8Ef472rOAcKwBjJQ9vclhENSy/mByZES1RJEoK5oOQ== X-Google-Smtp-Source: APXvYqyi8nIXQDj2ugSX/g1F1NQ31jje0okYraKqhulV1UTIkL0PlAL7bTnC17dm+W0q2Vu/9JmXfQ3bZcm3GRu/mQQ= X-Received: by 2002:a2e:2c14:: with SMTP id s20mr14987778ljs.54.1564951365852; Sun, 04 Aug 2019 13:42:45 -0700 (PDT) MIME-Version: 1.0 References: <20190804201838.0246918C08C@mercury.lcs.mit.edu> In-Reply-To: From: Richard Salz Date: Sun, 4 Aug 2019 16:42:34 -0400 Message-ID: To: Clem cole Content-Type: multipart/alternative; boundary="00000000000040a2a0058f50a27d" Subject: Re: [TUHS] Set-uid shell scripts 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 , Noel Chiappa Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --00000000000040a2a0058f50a27d Content-Type: text/plain; charset="UTF-8" BSD added the #! "magic number" based on a suggestion from Ken I believe. Didn't the exec (2) manpage warn about argv[-1] being clobbered until that was added? On Sun, Aug 4, 2019, 4:31 PM Clem Cole wrote: > > > On Sun, Aug 4, 2019 at 4:18 PM Noel Chiappa > wrote: > >> Part of the problem is having the kernel involved in starting shell >> scripts; convenient in some ways, but V6 etc worked fine without that >> 'feature'. >> > That's a tough call. I have mixed opinions about it as a feature. I > kind of like the user/kernel interface really, really thin and unadorned. > > Adding, it certainly made allowing multiple interpreters to be supported > much easier; but as you say it opens a new can of worms. Given the later > proliferation of what bwk or Jon Bently once referred too as 'little > languages' (awk, perl, tcl, and sigh eventually python), it was probably a > good feature. > > But as you said, v6 worked fairly well without it. > > Clem > --00000000000040a2a0058f50a27d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
BSD added the #! "magic number" based on a sugg= estion from Ken I believe.=C2=A0

Didn't the exec (2) manpage warn about argv[-1] being clobbered unti= l that was added?

On Sun, Aug 4, 2019, 4:31 PM Clem Cole <clemc@ccc.com> wrote:

On Sun, Aug 4, 2019 at 4:18 PM Noel Chiappa <jnc@me= rcury.lcs.mit.edu> wrote:
Part of the problem is havi= ng the kernel involved in starting shell scripts; convenient in = some ways, but V6 etc worked fine without that 'feature'= .
That's a toug= h call.=C2=A0 I have mixed opinio= ns about it as a feature.=C2=A0 I kind of like the user/kernel interface re= ally, really thin and unadorned.

Adding,= it certainly made allowing multiple interpreters to be supported much easi= er; but as you say it opens a new can of worms.=C2=A0 =C2=A0Given the later= proliferation of what bwk or Jon Bently once referred too as 'little l= anguages' (awk, perl, tcl, and sigh eventually python), it was probably= a good feature.

But as you said, v6 work= ed fairly well without it.

Clem
--00000000000040a2a0058f50a27d--