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.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 752327f1 for ; Mon, 6 Jan 2020 15:43:47 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id B30759BBD5; Tue, 7 Jan 2020 01:43:46 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 5C49B9BB4A; Tue, 7 Jan 2020 01:43:19 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="E5U9rhTL"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id AA68E9BBDA; Tue, 7 Jan 2020 01:43:17 +1000 (AEST) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by minnie.tuhs.org (Postfix) with ESMTPS id DB43A9BBD5 for ; Tue, 7 Jan 2020 01:43:02 +1000 (AEST) Received: by mail-lj1-f175.google.com with SMTP id m26so48913133ljc.13 for ; Mon, 06 Jan 2020 07:43:02 -0800 (PST) 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=JP3azphlJ+hpfk4OZqKpkZpCqv0OoR5/aDTgBJE90jI=; b=E5U9rhTL5wKepMBeDLEo4e/El4mQqlkfqVeRk4dwib51jy0YvUbaRDoSTWGmOvk1iw YWRXeiEglWwcZYmA7Yn31JiPix1ISCrcWmtUOIin8qWDmKOejosst9hFLyCc3PxH9St9 pLmx1V3VKmYC7HP7Vpbu2iQ1jlNYZNZ56L4sb7IfTejB0vh9DNJLXPX1pJLel9o+gTh3 HwLC2KGy1EXGNOrNSEFzOWtXzCXH/heYpq51w1sAqQe+h+yGfkcb2zimgkicV5wGAPHx Kz1br7ZsrIZI28/349FldS3xDIkZSr2KClWNjQMFFP7xP+dUJHWnTNGeNMhu8tqbyp3o T55w== 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=JP3azphlJ+hpfk4OZqKpkZpCqv0OoR5/aDTgBJE90jI=; b=LSJ/3BBOHFHXaWq2ZdURcZ9H6gijqRTrFp5QIxyFcu+QcQW8QSMonfxYlP0jfwEixK 3HtQ+dXrCbEnLhSrf5I4jNi3xFAdb3HBTk3mST9Wiu1IcSF1qf3QUpCO12WRf0jiaKl4 a7HJHbMz9g5nKDGiwmquKa9RKqEG08VWoovQ7nPEdwdzHZUlIXyD5p6iJn4Kzr1OrHdK 2EM5WlTfE9AiSq9cpqqUltWWiu3+q9zlGmhIwdq90m6jhxKNPyjeUMRT6ujYoNbw9eBc OG5tQySXfBK4DgXVOESIn7L50/lRSOdFREo3g3jQhVfKZ8JL8MFd3oswlYkEmWB4v0+s ajeQ== X-Gm-Message-State: APjAAAVVytLbQs85DLLQ10FaZWbDm+/KgpX1YA8dq/gxscVmcIeAQKrd zuXVOeWpC/klE6RjTb9r7rJE1Gqg91xW/BEjEJFJKrOW X-Google-Smtp-Source: APXvYqyUbGGrepAlrxfzyvKLPg6IsFOU+J3lPzUDc5zt2u2YEGHMFLG1WLn4xGYqR7CY+Y/fnjcUhNX8CYKIGtfbE28= X-Received: by 2002:a2e:8152:: with SMTP id t18mr60790216ljg.255.1578325381211; Mon, 06 Jan 2020 07:43:01 -0800 (PST) MIME-Version: 1.0 References: <202001060324.0063O6lt010608@cuzuco.com> In-Reply-To: <202001060324.0063O6lt010608@cuzuco.com> From: Richard Salz Date: Mon, 6 Jan 2020 10:42:49 -0500 Message-ID: To: Brian Walden Content-Type: multipart/alternative; boundary="000000000000afea6c059b7a83f6" Subject: Re: [TUHS] sh: cmd | >file 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: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000afea6c059b7a83f6 Content-Type: text/plain; charset="UTF-8" On Sun, Jan 5, 2020 at 10:42 PM Brian Walden wrote: > not the kernel. This had traditionally been done after the exec() failed > then shell ould run "sh argv[0]", but with two shells this was now a > problem. > It seems the kernel did that; http://man.cat-v.org/unix_7th/2/exec since argv[-1] was altered. I read somewhere, can't recall where, that Ken Thompson suggested "#!" being added to the kernel during his sabbatical there. --000000000000afea6c059b7a83f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Jan 5, 2020 at 10:42 PM Brian= Walden <tuhs@cuzuco.com> wrot= e:
not the kerne= l. This had traditionally been done after the exec() failed
then shell ould run "sh argv[0]", but with two shells this was no= w a problem.

It seems the kernel did th= at; http://man.cat-v.org/u= nix_7th/2/exec since argv[-1] was altered.

I r= ead somewhere, can't recall where, that Ken Thompson suggested "#!= " being added to the kernel during his sabbatical there.

--000000000000afea6c059b7a83f6--