From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29217 invoked by alias); 13 Dec 2016 04:20:54 -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: X-Seq: 40171 Received: (qmail 4701 invoked from network); 13 Dec 2016 04:20:54 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f172.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.217.172):SA:0(0.0/5.0):. Processed in 1.380129 secs); 13 Dec 2016 04:20:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com 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.217.172 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=a+pKPpX/Mif2y+jPBCuwe8hKL+wHLHAEoNCdPrSQ1dw=; b=END54BqAfFVmBcK6RctVoCAofcUWvVaJbEwfDoWoAu9s23WhdKj5bmvF07Jj2seS+g 7Tdvkv1vD3F9ZUHr0Yz7AUn4F5RYhdncM9hn5Lq4xzzIQ5wK4+tLqfmvfwpOsNiZCNzY j1fIinvTb+v79egN0WSMLket95wBuR0bwl/Ykjzls8DJ2lTC7B2s0le3FkF4J3oJoqNJ WAB4U9qqyn6Iz2LC38C2MhY/JtUpgqy1f7LTvM8nftZwPHGNuwgW8C6rfKQgCG3bjEIF 3uqepHsGJw+3hsgPmt4pIlmACP1P+ditZBg/FiXbAKhnvinE2Fu+syq39fk6utyNKiFH 80dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=a+pKPpX/Mif2y+jPBCuwe8hKL+wHLHAEoNCdPrSQ1dw=; b=byndhXeg/PsQEmIJcK4dtaWkFfwIK5YO0wqm8Dd/c23YWlsz7BilxE3OA5qX9PKw8j XWJ/cV7vrA3s7Hyr7pSZWlcThKhtFG3n4Oh3koycYo5hMdDIhvTJW7IqGfY1Fo2HcEB9 ahFzAk1k0N/vlFAGc0aR3Vgc4VYl9SKIAh8ykKS3AhF9Zk+qc6/1v/FFDAVTGpF6DSV6 YxtpW8E9A9Zeg/ndh5OEZL+O45v9z8+RlTm560xA2uxguZj/+CZ60wFksilyzHvxN1al S4G+y3kclHyE30cP/85uQiZIrn83oeADRehOTq8OqHMCZqPBnVb8f5yx8ryeCDdG3c/O bwkw== X-Gm-Message-State: AKaTC00rg6sA/Zfl0+TYu/wylMNsru5hiBdSao2hwwtJA0qU29WuAUz8aVNR29tVYqfb+g== X-Received: by 10.176.0.87 with SMTP id 81mr65791209uai.73.1481602845889; Mon, 12 Dec 2016 20:20:45 -0800 (PST) From: Bart Schaefer Message-Id: <161212202110.ZM19667@torch.brasslantern.com> Date: Mon, 12 Dec 2016 20:21:10 -0800 In-Reply-To: <20161212234102.GB5457@fujitsu.shahaf.local2> Comments: In reply to Daniel Shahaf "5.3: printf -" (Dec 12, 11:41pm) References: <20161212234102.GB5457@fujitsu.shahaf.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: 5.3: printf - MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 12, 11:41pm, Daniel Shahaf wrote: } } % printf - } printf: not enough arguments } } Happens in sh mode too. dash and bash [that's what I have handy] print } a minus sign. I was going to blame this on zsh generally treating a single "-" like "--" in argument lists (which is documented), but something is fishy: torch% printf -- -- printf: not enough arguments torch% printf - - -% torch% printf - -- printf: not enough arguments torch% printf -- - -% torch% printf -- -- -- --% ("%" there is PROMPT_SP of course).