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.3 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 519776bc for ; Tue, 20 Aug 2019 21:11:44 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 995B29B95B; Wed, 21 Aug 2019 07:11:42 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 206D19B4F2; Wed, 21 Aug 2019 07:11:11 +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="rF3ty90X"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id E52E594C18; Wed, 21 Aug 2019 07:11:08 +1000 (AEST) Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) by minnie.tuhs.org (Postfix) with ESMTPS id 8D30F94C17 for ; Wed, 21 Aug 2019 07:11:08 +1000 (AEST) Received: by mail-oi1-f182.google.com with SMTP id k22so5249907oiw.11 for ; Tue, 20 Aug 2019 14:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QD57ddkBGc9rkgOq0l5LIBmLMhclWpUv5fsVmAuvkYE=; b=rF3ty90XNGWt5e/1yvyj9Rvv8c8uGpTpl8is+0cn4XcBFKgjr70Rs1UiXNsIrCVHcS DaZBg4gCuzJZZJu2dB2eFGiGnkxDTpUM3XonkcnbkTlL6eKA1eDYX14oReEbLIXHcOYH CPqDMBGUsRRs3VdrRw5Z6va0zuESomzRiTOxuNc0JE6jXwwXwkVplLGGqQqbEy+JFyEz M+cbVdgrKOpZ4Hp99Wp7p18w8Y0Vh7ObqDEZs1zDF61mOFsg/8VkSS6QTNPPy9Fot1r4 CTr1Vta7rlFG0z46regCRp/LA0yDIjED9/sTIfigd+KkeFdkTBWDRaDFebNkL507svEC aV+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QD57ddkBGc9rkgOq0l5LIBmLMhclWpUv5fsVmAuvkYE=; b=JnIgSVFxJshd1JUOSShuIMmebxdVayvcjBni62xTgilP0SICq6k06UrG43+hpd/7c/ YposOz8Qvl0TMOkyxEfKAf3QXd0VE+D1oglkBG5vLc9UWqArmNL4rtEaL7LCcxnfXOqP F9RgGlobZDvLoKAt5tZMcu4pdz22UUpKfUYLyYPwVmSvTJpHjxaSkCNuDhVKLjlvQiFm JfDHxOLrdWWA+yuD76+2jl54JCh8L/YPSSFVGV9Eq7RbJhWXTbpP1hjl1Jg5raIxNInR Zg7DBDZH58thVgTujhl//pJ9MTDBvnmso+QEqQ4kRVhqcTAUm1sJbZFdzyV3DjXXExWp qdEA== X-Gm-Message-State: APjAAAXTuFRwdHfT3tHw12cdNgxr/NFBYtF6lfZnMEWcflGISCrISiG+ lTCZXsYTmj+x3A08IBhVy4MpcDjFUapKUtAaloXdUg== X-Google-Smtp-Source: APXvYqzXlH5NQvFDOfOgxoAjOq0h7DUT+afpiI6xEvMDeUvZAyBvsGCyoHT/EY7cQfCXbTh7DxBV09qK5Q0TXS9hbrg= X-Received: by 2002:aca:b254:: with SMTP id b81mr1430769oif.53.1566335466013; Tue, 20 Aug 2019 14:11:06 -0700 (PDT) MIME-Version: 1.0 From: Adam Thornton Date: Tue, 20 Aug 2019 14:10:55 -0700 Message-ID: To: The Eunuchs Hysterical Society Content-Type: multipart/alternative; boundary="0000000000000d0955059092e502" Subject: [TUHS] Shell builtin exec 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000000d0955059092e502 Content-Type: text/plain; charset="UTF-8" This is probably the place to ask: I understand why the shell builtin "exec" is the same as the syscall exec() in the sense of "replace this process with that one." But why is it also the way to redirect filehandles in the current shell? (That is, why isn't the redirection named something else?) Adam --0000000000000d0955059092e502 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is probably the place to ask:

I understand why the shell builtin "exec" is the same as t= he syscall exec() in the sense of "replace this process with that one.= "=C2=A0 But why is it also the way to redirect filehandles in the curr= ent shell?=C2=A0 (That is, why isn't the redirection named something el= se?)

Adam
--0000000000000d0955059092e502--