From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 654928e1 for ; Fri, 1 Mar 2019 21:05:43 +0000 (UTC) Received: (qmail 26047 invoked by alias); 1 Mar 2019 21:05:30 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44097 Received: (qmail 14550 invoked by uid 1010); 1 Mar 2019 21:05:30 -0000 X-Qmail-Scanner-Diagnostics: from mail-it1-f179.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25370. spamassassin: 3.4.2. Clear:RC:0(209.85.166.179):SA:0(-1.9/5.0):. Processed in 2.335114 secs); 01 Mar 2019 21:05:30 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.179 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=keuucS924rmQXpLS4UCv7Vz6a8cKrZShkHEfUU6YHYU=; b=X5TAP76laa2r8H4dA9JimLw2Ls1a7RJb6vm9JzshS2wgz5ufu80h0P9dnf1XvhEwBX LqS+6QN6IT/eVCpaWfsHlQJw4ASq8GbTi2OERe1ZC1iDweBpmr6Ye+oz9SooXHZE5lLI Ibqev8WzUuGBV3EzZQxfvFNsNznGDut0Ga4vhLpkwgbt5KhGl5rOHV/6YnlF8AtljeJG P2TGC482/49NYrv7+CgOgsu1Gy22qqHeCDZN3iY6d2zYwD9923aYiSpazfOFsEqxpEZd bx2i+wuShfmOzWOOBzz2602GBGaBSUvT4Zfb24ebgFdXnJF1FpS1ciwjTX6y6AYJlXM9 igNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=keuucS924rmQXpLS4UCv7Vz6a8cKrZShkHEfUU6YHYU=; b=gAkMARZLbJHUyZtI0D9yI0IBp9X+MtzCIlZkChgsSSiNN72XeysnjnCQONmg6hX4rn +TYBYSwR8uPkwQEjzdSlP0oAhGTyJHdp1Jfz1gNcDnGkprH2ZPlSKneOKtPoE/4toAe0 zXgAwzgfUrJeUacGXOYFkPumxOCrYq9SyPrBmWfVuNqo2IwJzu8vDYKcdo1rJifJz/+y 4zbTm+/4H8K8rTihgwBItBFTJh4+KtiOJhQc4Brne0YDDKrMgFj0ZzijHjQCjYrpt+nr xVDXEHwjuiqaYIcPiWYgczlVdNFfYZfFFEmPgm/L540wCsglrZUaZE3oHrVerDu/oQDx dpcQ== X-Gm-Message-State: AHQUAubYUeeArjd53fkxIFCeMfFobv+0E5okSLGTEM1r4MHIR/saVDD4 9sH7fZHt7A1fvevUmpIKK9DdPQ== X-Google-Smtp-Source: APXvYqwvSYwhmqGvirNStv0TE7mgfrWjB/8cs6Vw7ltnEbHRzxUn6EaFGQSK/IHDbg/IeDvmVXzvlw== X-Received: by 2002:a24:7542:: with SMTP id y63mr4484299itc.70.1551474293872; Fri, 01 Mar 2019 13:04:53 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: zargs: Argument list too long From: dana In-Reply-To: <20190301185616.ldsvccgtilfapyb2@andrew.cmu.edu> Date: Fri, 1 Mar 2019 15:04:51 -0600 Cc: Zsh hackers list Content-Transfer-Encoding: 7bit Message-Id: <85EF9326-B273-468F-8D2D-BA1135B61A1E@dana.is> References: <20190301185616.ldsvccgtilfapyb2@andrew.cmu.edu> To: gi1242+zsh@gmail.com X-Mailer: Apple Mail (2.3445.100.39) On 1 Mar 2019, at 12:56, gi1242+zsh@gmail.com wrote: >But if I do > > zargs -n 1 -- arg1 arg2 arg3 -- echo Argument: > >I get an unfriendly error message The comments at the top of the zargs function source explain this and some other useful things. On recent versions of zsh you can read it with: autoload +X zargs; cat $functions_source[zargs] It has this to say about -n: >POSIX -L and -n are mutually exclusive and effectively synonymous; >zargs accepts both and considers -n to be a limit on the total number >of arguments per command line, that is, including the initial-args. >Thus the following fails with "argument list too long": > zargs -n 3 -- echo Here are four words >The smallest limit implied by the combination of -L and -n is used. So... just use -L (or -l) instead of -n dana