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 9831 invoked from network); 19 Jan 2021 20:27:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Jan 2021 20:27:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1611088063; b=nmyQk5mvSZgWNT/K+/l/WWMRXphd84GvudBkCc4bUA9ETicxNy41+v0C3OYlJ+Xs1iQWo1f4Pa bmj4MBHjaDKJa7inJizp0LuP+6cO90NjiW6Er8LBypKEP2C6sujRQvrFHNaqASfUZv8i/5Ti+O kenFiORYuSZC3oPIfTfxCtFJ8WzF/B2Ni6tfSVhKBmXkzwYAWQhtk1tP5VTe0Bxn0oSBzPAN0U 1obCZxkWD6IIeCsgFk9c+wmb18+ziRsUt3N3olSOSj/KnLuoWXOC8Gl9HEd0CXmiVv8brTLshv 7RI5Qk6ZbE24uIgkGTujJ/dt8RknT5dvWbGKDYvtAkpw8Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1611088063; bh=I/ctPlTXm617tEaDWyKsIdnT5RSDI7G9lyt8M37wLXw=; 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=SMFQuDJjiFdhW2jcPB/fnmsEAkMTao/NOcr/VgrIF1D5HYm7SihjQ72iOoiknlvK0g+pB7+2j/ sGkXUDj/e56LRZb8N803EhVr8aV7LGQ76xfVabTHpClkmbzuAxrLeLR93vtlijDEAouet848Ya afsjkhzAwbdNL+c3mMs5YvpzIBiO5hFQ9SKFCUFWFtpGY2xT9hSRECcRxpUXN8UBbqqoLXviu1 ohMMpLKfL8Ejcn3T/g5UOmkoOxLUapJxoyocX+T9UQbxuNnnZ7cqU/rt3VD6+Sd93ApY1arKtk D+omjcj0erLrAszIZrnB24xCFVy+mcukkrluFc4oaeLCFg==; 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=16aEaLY9jx8z1DPWt2zjFmn6ZPhDPfFG9oPouvJ5hTk=; b=PuyroBErwBr6o39Uc/BDBlN4H6 Jxulz3MI2qY5WUkuGgMIw1rd0Ief2O/HbdFhHglH3gXQ/CK0o5un2X7oQdGh68RHas3nksP8bDXN6 QyYS59P8Bq1Ei88bR30yx9g95D6tMHoNznS8zgqzeu3kgy8mCRwi28dE5CK0YOswKErhWn8WfOa0N TgYcC/E9O+SMxleqBY3OUg/Xe+/Fixa9UOqVTD9pd4uvyDYY2IUqktutWRZ5N58Ewj0hQiRjrnzSz BpD39GN93zzOKCCCy6DZI1TbLgJFxlopw/lHxbWkgYZER+HYhy7Y5WckYD5F7XAVA6u7xB3NMwSfE rjIB9xdw==; Received: from authenticated user by zero.zsh.org with local id 1l1xbL-0007fu-9z; Tue, 19 Jan 2021 20:27:43 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:45267) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1l1xak-0007IT-F9; Tue, 19 Jan 2021 20:27:08 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QN700MUC52FBBR0@mta03.eastlink.ca> for zsh-users@zsh.org; Tue, 19 Jan 2021 16:27:04 -0400 (AST) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id 1xailoxiaBfFD1xailJe5R; Tue, 19 Jan 2021 16:27:04 -0400 X-Authority-Analysis: v=2.4 cv=Ncoja0P4 c=1 sm=1 tr=0 ts=60074098 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=FB4hzOov4E-dJ9Zhv7AA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtgddufeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrfegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: xargs with zsh function To: zsh-users@zsh.org References: <6c7b3cb6-5c0d-e9ae-67ea-a194cf9f9181@eastlink.ca> <7025ab43-7e15-df70-d09f-91ebaae2b7f2@eastlink.ca> <8868DABE-1D18-400F-A8F7-31450A892F0D@larryv.me> From: Ray Andrews Message-id: <161abccc-2323-8f22-70f9-f5edf59a61e7@eastlink.ca> Date: Tue, 19 Jan 2021 12:27:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-version: 1.0 In-reply-to: <8868DABE-1D18-400F-A8F7-31450A892F0D@larryv.me> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26397 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: Archived-At: On 2021-01-19 9:52 a.m., Lawrence Velázquez wrote: >> ... But that's bedrock syntax no? How can the clean shell not swallow it? > Globbing flags require EXTENDED_GLOB, which is not enabled by default. Right you are. > To establish a known configuration, zargs resets nearly all zsh options for the duration of its execution. Your function should do likewise. My strong preference would be that zargs be agnostic as to one's environment and functions called by it would behave exactly as otherwise.  Is the code for zargs a discrete thing?  If so I'm tempted to clone it to another name and see if I can make it transparent to existing environment.  I'd like to be able to link my functions together via piping+zargs.  Mind, I'm imagining that would be a simplification but perhaps exactly the opposite.  Besides, piping is so mysterious, there's an invisible river of data and it would be interesting to see how one gets one's grubby hands on it. Thanks Lawrence I spent hours wondering what could possibly be going wrong there.