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 7747 invoked from network); 20 Jul 2022 19:09:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Jul 2022 19:09:20 -0000 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:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=x6xFo6expG7U7HA1o0uvRfZ3PDHRWDfNwVBCL64HiFk=; b=obLY28Sl20ZU2zEVAROV8my5Bz WIv0sqMgGlEK06iPLCZ9fikriaFpEg6iqgPpJvz3uXXd4dd+AQ32Shj6HdxyRtDuEVJQP6BW7zqRY KOEMJTku5Qt6MoEkbmbz9cCRaNhAjVn7MmyXCBOMX+326FHjfcjIeSDx+UBtGNIyaRGBQdqmr2n0Z oas7lCfmU4BURVVwt+fY7lENRtXoyGA+9PDzVhnxm66IJDFu8LLAcbPt+NdGzs9FcfddFRtTyp+PJ I0z3jPn+HGs8dDKZqFlP8nf59kxdpcJrzD6KiMhhswdb9cu1gzHs0cvmY9+Iq2Y58EVEsR+eQyW8S 6SBxKI+w==; Received: from authenticated user by zero.zsh.org with local id 1oEF4R-000LwA-ID; Wed, 20 Jul 2022 19:09:19 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oEF3O-000LDU-2x; Wed, 20 Jul 2022 19:08:14 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 8CD4427C0054; Wed, 20 Jul 2022 15:08:09 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Wed, 20 Jul 2022 15:08:09 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudelvddgudefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreerjeenucfhrhhomhepnfgr fihrvghntggvpgggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeehfffhueejheeugffgfeeuudffledvleegffeuhedvveekueeg iedugfelueefteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3F23331A0062; Wed, 20 Jul 2022 15:08:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-755-g3e1da8b93f-fm-20220708.002-g3e1da8b9 Mime-Version: 1.0 Message-Id: <1f3dad2e-9fa3-4082-9c0f-6a81c136ca9b@www.fastmail.com> In-Reply-To: References: <28c00da7-cfdd-4f58-a539-8deebbe5dfa5@www.fastmail.com> <978d1a3f-8d21-6a2b-02c4-4e7c56e6ee72@luffy.cx> Date: Wed, 20 Jul 2022 15:07:48 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Dominik Vogt" Cc: zsh-users@zsh.org Subject: Re: view onto command pipeline? Content-Type: text/plain X-Seq: 27906 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Wed, Jul 20, 2022, at 8:35 AM, Dominik Vogt wrote: > On Wed, Jul 20, 2022 at 02:22:21PM +0200, Vincent Bernat wrote: >> On 2022-07-20 13:37, Dominik Vogt wrote: >> > For proper handling of whitecpace in options and arguments: >> > >> > command git "${opts[@]}" "$@" >> > >> > Otherwise, if you have, say, files "a", "b" and "a b", >> > >> > $ git commit "a b" >> > >> > Would commit a and b but not "a b" if the $@ is not quoted. As a >> > rule of thumb, _never_ use unquoted variables in shell scripts. >> >> I don't think this is true for Zsh. > > Depends on shell options: Additionally, without quoting empty words are removed. % foo= % bar=(a '' 'b c') % printf '<%s>' "$foo" "$bar[@]"; echo <><> % printf '<%s>' $foo $bar[@]; echo Whether or not this is desirable is up to the application. -- vq