Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 5.3: printf -
- X-seq: zsh-workers 40171
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: 5.3: printf -
- Date: Mon, 12 Dec 2016 20:21:10 -0800
- 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==
- In-reply-to: <20161212234102.GB5457@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20161212234102.GB5457@fujitsu.shahaf.local2>
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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author