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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8693 invoked from network); 4 Aug 2022 21:14:08 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Aug 2022 21:14:08 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1659647648; b=o17/D5fKTaaSHOWNIpUxihLnkk0SaQVRl1fBTCL0JG3tttp7nzdhp5y1zzD8zBK/YY/nqhgBoL wFn9CR0fv7oqDss+ohi0v8fdeBHEUSk9LS1iPMbOwok9epUk8lPTJBrkdo6whbMgMBDN91se7f aVzJoNl60JWbNC/cRqfcVprjypksNB4L6xkPgrLvnSTDnIOksr7Ztw547jYCVbhzCZWiHBTSMi X+Fyi4aDsyrtUDJg3nv01PQ56Mp47OLL9nyVJBjIH485oLyKBC54i8vun1BNW4rTXhsN+jxcxo 6O6aJuVLpP3IxAW12v01V7UFlvlKIS2xK70U25d5sqNpbg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f47.google.com) smtp.remote-ip=209.85.218.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1659647648; bh=Dr5BOx+cR5bCeeXlX4FB3sgD1yVTxh9R3/qRxTUypFM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=HWj42DSzTKADcubEJfxETivUEQBhI6uCaycqNJ6YE0AwLOWSUcJAqta+Kj/GLlRjN1g8F3vE0M yUYNkom8rgl85Lz8lhP0D4Gf4cKFw7HLVfeCf6pA7PwSCWG+9kM+Gap5GUrgvIqHSYb0DaeiXA tei2TQiAJxhEPWvKfO2It+CfpA3Dw39BehEyzGW2qrAPu2+QEC4/AmUtjVR3pspIloWdbMorqo BSRzm44tBW07XHOdZYZOoiqzb0TYHIKOY/0Ezjl5BUZjEIC3dPUX6zdfJEUrXU5axnFDOBdEHW XO4M1eHxKApKq5OUzuu3CpUp0OWB9ZXkYH9z0zPGX0n3PA==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=5Kb/ht0kNd78kr8Ub9cOaPrU/TpkEo2tL/Caw9ZtuVQ=; b=aNWdjcjYJ/V9tzLunskPD2D/c6 iVMtALEzwb6w1XqVfIPDWyUfZpqMFCjGdKIyo8iw7+s6aFJV0Yr+ahRBBvZ/SZxOLMDyGAPQv/x6e 8xM3r9Hb7Y5sTLiGtWO90Nx1ebejw2dfWzMOiha4FzdXdskkotryXC9dhi7UZylWGPDzpqocylTdI aQlydk7NU/0H/SHqufKeJpCjmCHC3c8Ffr1W6kmhxbsuJdL5T0uOxvWHZRUet3mAC6WVteIAW7ES+ tXO95c7sELGsxDyF9MeutD95UGiLdS33AjW0SN2k4eTSnfQBQGRRw2TabGshW35PPsT7doNmAysyu dVklV4Tw==; Received: from authenticated user by zero.zsh.org with local id 1oJiAS-0006vU-7V; Thu, 04 Aug 2022 21:14:08 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f47.google.com) smtp.remote-ip=209.85.218.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ej1-f47.google.com ([209.85.218.47]:46868) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oJi9P-0006FO-VN; Thu, 04 Aug 2022 21:13:04 +0000 Received: by mail-ej1-f47.google.com with SMTP id y13so1451139ejp.13 for ; Thu, 04 Aug 2022 14:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=5Kb/ht0kNd78kr8Ub9cOaPrU/TpkEo2tL/Caw9ZtuVQ=; b=Ny9vSEYpdedSvCu82sJQyYulkR51cgYIehmoNPyHKnJqW81wIXUiE7E1SUPvnWNa1S jO9MrQllXaEmRkfzdy4h47M5Ej9k8XNF8a0m5At+ThRPAO9jlC8FtGAcBpC2XmEQNrX9 Go44fLCfzCLYrjiq08myZ3uQEFkMJIgoBO4vbuXpW/qAOyCCi/8lBdDozrh2NdzoCoig 5o7H8Srq1sKlDTK/M+SdT5sYW/mrK8MgKfIU9QF8f9ATyqnG0A7Pq+DHGKXmWDOD2V5t wG79TANvhyCrs97Yypxd7+YsIAKyz8x87EaRTRs9qq5q2b7gcZxkFT6tmP85Es/U3lQk bXhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=5Kb/ht0kNd78kr8Ub9cOaPrU/TpkEo2tL/Caw9ZtuVQ=; b=at+x10GoMQukEwDwlUcZiadk9nihNwCIgsmuMF5hM1CgU1Lm0oBMoarWrTJ9PL6znM TPSrpmDSWF5J48rF5TSbmpHhSxnoZMerodCcDCv2gxx5yq1abaew0eNw1+tYEf0+L7cW otjfqn0vNbeuLWsFSeoXprw9Y92R1BgqGLsoceVBbIjC5Why6RxOsON71tgovGtxk7qS b9HssXy/Y0tSMvxtSceQ+KzbmUoAYgqV1zUNFeiMqR9jtxRCEvBNgLo4F/gKVrPCf//t CrdeeiXJvIxvMhsV7pe+e2C5oofLrSEyDOuW9PtZnDMn7mL2iGDf5zjCWAr9tNWbb8fq YUgw== X-Gm-Message-State: ACgBeo1NcuQuDepLcO3ilCziJz28r00LoF2nMQOTR8Jru8T092jHEUPK wedrA/RXGGUNj7qEgO5lgshtkcMHcXFffoztqvjZBx4b6R4= X-Google-Smtp-Source: AA6agR4gh/zbaJLPwUNE9ietBK80wUGAO9Tx9SLYzC+5ieal1a0LrAcIm0tzJpfOp7MfS25FEbN/1GaVHB7FdeLuHUs= X-Received: by 2002:a17:907:2c62:b0:730:d9b9:aabb with SMTP id ib2-20020a1709072c6200b00730d9b9aabbmr2066545ejc.84.1659647582737; Thu, 04 Aug 2022 14:13:02 -0700 (PDT) MIME-Version: 1.0 References: <28c00da7-cfdd-4f58-a539-8deebbe5dfa5@www.fastmail.com> <645ba344-9d97-4ddf-82c6-e6338c98da8b@www.fastmail.com> <9310fc4a-8db9-48d8-873b-c50a63f9aea5@www.fastmail.com> In-Reply-To: <9310fc4a-8db9-48d8-873b-c50a63f9aea5@www.fastmail.com> From: Felipe Contreras Date: Thu, 4 Aug 2022 16:12:52 -0500 Message-ID: Subject: Re: view onto command pipeline? To: Anthony Heading Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 27934 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 9:12 PM Anthony Heading wrote: > > On Wed, Jul 20, 2022, at 9:35 PM, Lawrence Vel=C3=A1zquez wrote: > > On Wed, Jul 20, 2022, at 8:15 PM, Anthony Heading wrote: > >> Agree > >> quoting $@ makes sense here since this is a wrapper, but I find more > >> often dropping empty > >> arguments is often very helpful after splits and suchlike. > >> > >> But as to "${opts[@]}"... Just too ugly to do that all the time, no? > >> Instead, use > >> zsh's awesome sticky emulation: > >> > >> emulate zsh -c 'autoload -Uz ~/my-zsh-funcs/*' > > > > Leaving $opts[@] unquoted still elides empty elements in this > > context; that behavior is not limited to $@. (If this is what you > > actually want, go for it. Just don't think that fiddling with > > options has an effect.) > > > > Yes indeed! Though recall the context here was a *fixed* *literal* array= : > opts=3D(-c color.ui=3Dalways) > command git $opts "$@" > > Quoting "$@" agreed, but writing "${opts[@]}" instead here seems > a little bit like self-flagellation, no? Why not simply use git existing functionality? GIT_CONFIG_PARAMETERS=3D"'color.ui=3Dalways'" --=20 Felipe Contreras