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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19065 invoked from network); 31 May 2021 22:06:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 May 2021 22:06:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1622498798; b=c+vQVZGMf7Apb/sOicfNIVIxA0k9usegeL9s2hQ22lxrWmgqbMBn5ex1HQx8ONgBnwoTsxrCIT aRV7bR32HDYGsGC2ppFw8MnHznoSrloaEWEV2GFiKs9elwivgiMyHOVcMm5VEsdD0cAJJi4qrG J5RaWW/rGw1GYiwz96v6fxwNG6mSG7KMXAYzYPEeTTnAkZSf6fOHrZqq3c0TQrcwZx0osGq6g7 o5xF3o36uo4aoird1hHqYchaVXeDeGUV3QzfCdISofaL0viVMqLaxGmKhJQczPHCz+bV4TU9qo Mousid60a07a0hJxTC3r1eU6K6kQLaPABq8VyAvAdxxuRA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wael.necoro.dev) smtp.remote-ip=92.60.36.208; dmarc=none header.from=necoro.eu; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1622498798; bh=54FjZ0Ye+e6bxzSAhATLk2RqPx85H8cpdTG3IB4mVWU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=lgrZiPQxoLxLmXLlPuEGcHno0HIXqwiKQjwcUu80KODUKn82NxsCqy5fIvpf6A7GNS8uAqPbdQ +y9ivIaXNsFYt3qd+WfvmW+zGe6gVFPthzuKE9/HidMKe35nzu+Eo6p1yvArlwCGFjnUwuwmdq 0HlXrj02qHi86ee0IiYvQkioQrQ2Ezn2T1DLGyXUQkMnN+TPPiVlw3K53QpKfS/i8dNInOh9zT qHiFoXmikhSh96RgFKJEsFKyzKck88E6FNHF6KQebdaih3tn5SZSn/16v6n9lCytYedH6w/fEd 9pHQMZ+JQ9I09wPCVR4fRJgjkWa+BZhSbl+Xddh4UT9fOg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=pd+K1I1EVcW8l/hZDSMkcVfOxF9qRn7UeaqmHD2j/fs=; b=ptaWaxJFdbWGfgsm29fIQCjLFm te0UTwQgdI2YRkPd6N+5Yu9dMWcpyyPEzPN7n6dIldbeAioGdgprQ/PSbI5nLktjwV/QSshp2Vs0k oyvXYA30cpLx4BrlRQiMt6NFbeo5cuyiE+/9IijuYI4vuy+3MoaYualXpa3krnQS/F6NQuTd9JqhO 3fIjg0k2S5r17QnRRsDFwyNfK/Gf7cNr2fvDhwaiRuPyApsvDK5/83ip27zGzEOf+Lc4Pzo2WFsCo 3z5l24o+A5zzLTEJCHZS+tFnH84PH1d3F544jgd91iJ0hvEEvx+9VbOLSA46pNsq11cnR0K4YrUq6 EZYaZ5DQ==; Received: from authenticated user by zero.zsh.org with local id 1lnq3S-0009Zo-0V; Mon, 31 May 2021 22:06:38 +0000 Authentication-Results: zsh.org; iprev=pass (wael.necoro.dev) smtp.remote-ip=92.60.36.208; dmarc=none header.from=necoro.eu; arc=none Received: from wael.necoro.dev ([92.60.36.208]:50832) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lnq2i-0008qC-Uw; Mon, 31 May 2021 22:05:53 +0000 Received: from wael.necoro.dev (localhost [IPv6:::1]) by wael.necoro.dev (Postfix) with ESMTP id 21A44E1A12 for ; Tue, 1 Jun 2021 00:05:52 +0200 (CEST) Received: from [192.168.0.38] ([31.17.213.74]) by wael.necoro.dev with ESMTPSA id rfOiBcBdtWBShAAAc/PHBg (envelope-from ) for ; Tue, 01 Jun 2021 00:05:52 +0200 Subject: Re: [Review Request] Arrays and their usage To: zsh-users@zsh.org References: <26fc6ecd-4a05-e562-7274-ba045df536bf@necoro.eu> <20210531173651.2pfklkhv5zizfldg@chazelas.org> <1eb8dc21-eb40-cc32-4ca8-c049d7273a03@necoro.eu> From: =?UTF-8?Q?Ren=c3=a9_Neumann?= Message-ID: <640d7143-8e5b-92b5-8be5-1f1f8ac6a4ff@necoro.eu> Date: Tue, 1 Jun 2021 00:05:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Seq: 26757 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: Am 31.05.21 um 23:43 schrieb Lawrence Velázquez: > On Mon, May 31, 2021, at 4:04 PM, René Neumann wrote: >> Fun fact: I prefer `...`, because I find it more legible, especially in >> the x=`cmd y z` form¹. > > If you're doing command substitution in a context where you have > to suppress word-splitting yourself, then you're choosing between > > outer_cmd foo "`inner_cmd bar`" baz > > and > > outer_cmd foo "$(inner_cmd bar)" baz > > Many (including me) would consider "`...`" less legible. > I'm with you on that. As soon as quotes (or ${}) are involved, `...` loses. But, at least in my code, simple stuff like local tmpdir=`mktemp -d` is the majority of command calls, and there it helps (me) :) - René