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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7248 invoked from network); 21 Oct 2021 14:50:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2021 14:50:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1634827814; b=eTLgyBdyWNFXDVxKkWxm6w/7+6PRtOv61PSbL8NJFjiJAGWF+9XpPgAP/u6R8jpkXRdxqrPp+f GBZlhx0HqwWkh3Vpw8xiIsvWTf3incGzvL3YrdEf3qQj+VBUpdiYXo8sGWr6bJlBiOSBfv/1Qr g7wyf0YMF+F+2WP8/1FDxziF5lmvdLXbn+upbryudIXTjvizRwLM2SnK3MMLv/qALPqQHbt2ox vg39eLj9MXv02CwtpIrAVkDibluDdOQy9fWGVLAucNSXtTQGec770pj3KKTan1aemF2XBRsOK1 5/oD6D67Ulndj260ZRtmWB0EHDI5HFciHGzJjVqdwwICqQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1634827814; bh=SEporZKcWbzb97b03Ad38jI3+mXXoQmvV37W52niqbo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=UR67xULyfnizO00n0JEFjJuJGQX1UXlKRHwBn1+kJAkdmw+3seKB/1w8f6798yiuKxbvxilJkM Vuwg+K+seQ1As+SDHVl5rVlusa2PfVsiZgKbmHXvidimE29ME0DvovOn6riJVg7z7apkxa6bvk yHQk379dnZ5cBmcEblVugPNmu6HO06vWtBPujrNfEwHjCAFu00whSxdzHZDN6Wq+weRjJu7uat NJsbXCeZ/20z/d6IcU9XyO0C+l8Jn5pdvc07QGNPVpkgILUc9dg7+C2E7bsJo7Be36zvrmc5fo wB+4paNCGBZMqEy0fYI6tzLRfEFao5gRS18w+7AE7Qsjfw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=FR4ZHZM19Jpx1CjrB23rUaHAQJf5KfSnukpPNszLZFM=; b=FuXCEpt+UUJ3mM4O/rrXxl5kzh y7tQKHb3AJviZo3vffCLKWV34HX2C9Rx7Zv0o7tgc50V3rkIaOhPc3dfsXY2DUSOiDJVBBAKK35gn MFeZWgEmDWIU7ro5ScGQ+5CzYSQeMPC/FXzUJZITr/lP1sHWFwzpVAUrcGT/UZRV9hPiTPfjTWzPV At0bRblF3dDu67C0W/gjxCNbjQE9FqLSo+8aAw2IpIEg3I4JtJ6ebwB4cvytH61wNOCuU6meUPSKA SqGZCJ/fyphp9bu0sg2VC93rPzxFpOqldZ487ylgtLbQhKZHtUIV6Z0IuNqb07yyKW4wMQCeJnLL8 t7GJrmLw==; Received: from authenticated user by zero.zsh.org with local id 1mdZOY-000DWm-N0; Thu, 21 Oct 2021 14:50:14 +0000 Authentication-Results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out3-smtp.messagingengine.com ([66.111.4.27]:52137) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mdZNo-000DBa-O6; Thu, 21 Oct 2021 14:49:29 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E19C75C0221; Thu, 21 Oct 2021 10:49:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 21 Oct 2021 10:49:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=fm1; bh=FR4 ZHZM19Jpx1CjrB23rUaHAQJf5KfSnukpPNszLZFM=; b=tEtbQialIzZc1ulxZvi JrorYHH9VsDCpZUYUk+AHC2IjMPTcPWafKBqmB74V+SSXedLcrgvvmsgkXHYeNnT wX7By42nTtrVNgAH60AmiT9QzBJYfomKL6r+BGyo/kvY3x1kbiz10yJGXHV/aTvu bJ4XOrPS83Yt55B0cGI4m46GGyXvL5RQkLUdd8PsaQeu2aOxqdXcZYvp9GLetJbw KdB3hM5adsZcD+wmFrGCWrSPSKUHNY4eF+KfeTDp8H8oSCPf1ISa7hocnsf/CLqs F4+e1o60buW7FwkzUq5p267aaX1CYe1+6oqRv7klYhLk39j1f4MQ3S+CZ4evxQE/ 4sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=FR4ZHZ M19Jpx1CjrB23rUaHAQJf5KfSnukpPNszLZFM=; b=LcZWcArx5j/cAgfWeCzJL3 qx9bTst8nS8Q5cN7j5Jn+vEI+r2FsbGqzw4NC0k/E7bjGyeO/Nz8eKLNSDZDbE8I KWGrQDcMtFJ5D+Gt+A8c7FnM6NBcUOj/3O4usu0tSFejDRlw55lz0maG35CLUQAq FYkDzzJyJWo3hyoB8we4V3eMLsNhNr4Kv2YrCH/Ux0XOeY/jC6UIIpOiVEpgZEJa vgoYyrFz1kAP4452Vi6f0MiM6QiC5eu2Xk3cpNzUptm3hJMJMPufdmCwjvb9EREB fdWO/ovNol6dBIGoT6c66w03MXpDoG8PWl8kQqSYenlYXkbc6b6AztCHl/IcCqSg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddviedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdttddttdervdenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cuggftrfgrthhtvghrnhepueevkeefffeufeehfefhgefffedviedthedtgeeljeelvdei hfevjeefteegvdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Oct 2021 10:49:27 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4HZr3V2Fklz4hN; Thu, 21 Oct 2021 14:49:26 +0000 (UTC) Date: Thu, 21 Oct 2021 14:49:26 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Cc: Jett Husher Subject: Re: Possibly missing explanation on difference between '&>' and '> word 2>&1' with multios in manual Message-ID: <20211021144926.GF16034@tarpaulin.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 49506 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Bart Schaefer wrote on Tue, Oct 19, 2021 at 14:53:50 -0700: > On Tue, Oct 19, 2021 at 8:25 AM Jett Husher wrote: > > > > Did I miss something or is the explanation really not present? > > It's not precisely missing, it's just implicit. Excerpts: > > "Note that the shell opens all the files to be used in the multio process > immediately, not at the point they are about to be written." > > "Note also that redirections are always expanded in order. This happens > regardless of the setting of the MULTIOS option, but with the option in > effect there are additional consequences." > > It's not that "&>word" all by itself is not the same as ">word 2>&1" > alone, it's that "&>word" when combined with other redirections is not > the same as ">word 2>&1" combined with other redirections. So, s/not have the same effect as/not equivalent to/? (regex to be applied to the docs sentence Jett quoted) Cheers, Daniel