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,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13828 invoked from network); 21 Jan 2021 21:51:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2021 21:51:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1611265889; b=hwdIu4TZZcUDb8oqDhD6fvoFvSXF2iQlUprVN4fFi4Ark+N5ZH8FiCStUBozDyAbQ5VBFaa40C sP2NJqsuFaRF9gUlzcUF0s+yD9eEIMxbrX8lO691HA1KwytLWultBVgDCnQPouFV9djDoB84zG Tokv6Qjmw0r/JKZ+x+bsEtKErwipylxuydRDNo/4YqEp1vv7wssVos2zmeHY6Pq5JYt6VW0rHW Y9Kvr+QvR+vADedrFGOQZAVjEap5Wxi6LPqHzhLeSoAoH3Dq1s7tror6Y/GqfuoDDthfBU/53c urR8o/94/kks3HlNa2LID4N4OBJOnETOJ2T2w/uSL6UbVQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f180.google.com) smtp.remote-ip=209.85.167.180; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1611265889; bh=vHVeYMPfdg84MZPMlbIrT1DD6/trWtllqaR8SrwXnJU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=PScB05d4uRo64H9lwrl1T9iW4JvyzFeahFvBr3xExzS3sJJe+3xPlyzuFfeEjMlej2WLBW8CWq lzaD/6AuVsjdcGwM/rpkBSmx+EADcMtG3Ezr98r+IZr30quI4+cJeaalsMFSlG1BfB/jizg4Rk GNNc4kM9FOtm4E8hTMpKbWz8J03hPsj9l5SLNl/+i2INRg9OBY7vCmns2HKEWLywnfnuajPeDf cShtruPuiGQsoiHGFl00BHn/ZdtKMxMlfgB//951bIrZUH6Kz7AmcT7pdsdM+m/uOedNQNS5JX qldcoOUY4WXGH3T2bVUEeRijv5glgnTv2/pqtsDo1MKdlQ==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References: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=K1tU1B+2XcMKplKxSVkbOuiEjUKC03bDJ6S47n0fNVw=; b=qdNOSMnafsaio4zPfPeiPPwnWe cEmH8k1D5o1L5UtbvxQiZtbXLpLoCxpnlnSGwEthDilQFgC4S9Chc9lhLjBaI4hZbD5CygMsXnOlp yrVWG70CxZ8nvgEof1G8YAT4PltEP83ijmQZLprnYdKhIJ0gO6dC0QjyDyGgFRnXmP+mwSwx7H66P mLq7xAdu65j9Vzt//1N4/C5S5v+gZSv0ym3LIjg8lMenFr+fYPnx657Gd7dPW8VDsxLHTQKuQwfAD bAM45NKF1OKSF9Q/z1Wjfeu+rCTR+CZOt/LzzE1/zpu7I5bR8ANVZQ5udWMrXWrh9gyJ5MOtZiEmr zCxumqKg==; Received: from authenticated user by zero.zsh.org with local id 1l2hrV-000CGO-Mh; Thu, 21 Jan 2021 21:51:29 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f180.google.com) smtp.remote-ip=209.85.167.180; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f180.google.com ([209.85.167.180]:43889) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l2hr3-000Btc-BH; Thu, 21 Jan 2021 21:51:02 +0000 Received: by mail-oi1-f180.google.com with SMTP id q25so3804588oij.10 for ; Thu, 21 Jan 2021 13:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K1tU1B+2XcMKplKxSVkbOuiEjUKC03bDJ6S47n0fNVw=; b=ZbN0UcrDOTm/Rlsn5g+06bKlhoARODexvdE+ggmF1YQFAL+yOCpbfPnrDW9keMVYm/ 27sTkotlkVygUz0b0PtEMHptErZep+xHsU3ukZ7jMzaA97+WAvGpuJ/9XsVHtFX70shC sV0H/eDSKou9hqgzdQ8rbgTJqIA0HNu9GcB//6/2u4W6UrXoWp4xiPs4fIThWGs3IwFH pEYy00QqGrmqHRoElgIdCjHRgZ94eZx30dKJmX1nGgobP0Sx/Kz482Btdi0leze7705B xMAd9RrusPp8Jk2vXSygTAOkbYSEhALx56qi8/GALuUlosBJOEvI2z9vZfTqw4E3uBqi D/LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K1tU1B+2XcMKplKxSVkbOuiEjUKC03bDJ6S47n0fNVw=; b=HoSOuz0iRADGjgtUmsJU1PF9fyEkL/tpa5eZER8iU+eJwtnQfwOhuUKRzJ+Ur+LYIo T0kn6DPGIsp5wDhv48WX4HZKy28WnETBHKfSp007CKfB+fUdigjpxVZpBapb6GFl/uBJ 99Iw0cCPogsX9igFfszjAkLFdyY5lYqylNXMNYll5kG7ngsBo9YefAH5YtV2miOeiGNM mQgUlUT1mJBItBZt5GcRP3fXT47YHOZDv+iUlcRW7efZ8FVPWkg2NV5KrN1tQ9wLy6hP dHQBzl612y54E5YcXjf+KmQ0fK6Z4O/JT41Ql728mg5y+gJjawD+jbT+qd/PaYhc3jJp rAXg== X-Gm-Message-State: AOAM5336mNp1LovuONLCfgl6cGVQ/VXn/xyI5+fFH7SLohYIQIr21vGE vtupkFJOh+cZFfdryEZyVkYTbWYIa7HSlndbWmdB2A== X-Google-Smtp-Source: ABdhPJwPHF3KLaUyO+Q4epoegYu8yFZvx7beFyvLHlY4flrnTS7G+v8GPp/+7W/yiZn39kD07DRPvEhhpu++mN3eLzo= X-Received: by 2002:aca:6089:: with SMTP id u131mr1175282oib.84.1611265860149; Thu, 21 Jan 2021 13:51:00 -0800 (PST) MIME-Version: 1.0 References: <6c7b3cb6-5c0d-e9ae-67ea-a194cf9f9181@eastlink.ca> <7025ab43-7e15-df70-d09f-91ebaae2b7f2@eastlink.ca> <8868DABE-1D18-400F-A8F7-31450A892F0D@larryv.me> <161abccc-2323-8f22-70f9-f5edf59a61e7@eastlink.ca> <31712f4b-1810-37ff-0dcd-3067055d1051@eastlink.ca> In-Reply-To: <31712f4b-1810-37ff-0dcd-3067055d1051@eastlink.ca> From: Bart Schaefer Date: Thu, 21 Jan 2021 13:50:49 -0800 Message-ID: Subject: Re: xargs with zsh function To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26408 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 Thu, Jan 21, 2021 at 11:56 AM Ray Andrews wrote: > > On 2021-01-20 9:52 p.m., Bart Schaefer wrote: > > > > Since Ray asked: Apply this with > > patch -p1 Functions/Misc/zargs < zargs_patch2.txt > Seems to pass my posted test with flying colors. One thing tho, the > paths: My working 'zargs' is: > > ..../Zsh-5.8/share/zsh/5.8/functions/zargs > > I have no directory 'Functions' or 'Misc' anywhere on my system. How is > it that my zsh directory tree is different? My instruction was for patching the zsh source tree, not an installed location. > BTW, speaking of passing data from one function to another supposing we > have a list of filenames in a file: > > ... how can the contents of the file be fed to 'ls' as one call, but > with the spaces protected? That should "just work". You don't usually even need zargs for that: % ls -dl -- ${(f)"$(