Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH Re: 5.3: printf -
- X-seq: zsh-workers 40179
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH Re: 5.3: printf -
- Date: Tue, 13 Dec 2016 20:48:15 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:references:to:subject:mime-version; bh=6IHqpfSafG4kXxJujW3QnOlSNdslBSre0dPTfW3yRDE=; b=b/grT+1+TrG+nlgSwbs/sVjVfauz3p3M3sRl22Kc7ww+9Ye0vn7rIfR8vcUf9KhLPV EykwCH6oZNxOSGpVHGzYSJMWEiJUytdywc6ZsDBUJpqmwjkBluHzlNL7/lpk2VdvE7Af zKsvGdlHY7d5ZNwAAYvg0BAL5DkM0/SUa9M87qJDjXFlecdgC9J3g+rYxZ7eVDhZ9fDG AUnBsp8YA9VdY+PYCRhZpEoqh3syLhfU8ExW7pnE0N7kG40DmPMHkGmn7sRs1oJrz0ly WKLmXp8fKkdXymj4IdtAQH7zjBZeUhgCTK3EFepxKugssVUwRY/W3GniTpddfPAT74Iy J3yQ==
- 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> <161212202110.ZM19667@torch.brasslantern.com>
Apparently this was introduced in 37467 when I changed "printf" from
having no options at all to having the -v option for print-to-variable.
There's some documentation saying that ideally we would not create any
new builtins with BINF_SKIPINVALID but I don't see any other way to get
back the old behavior.
diff --git a/Src/builtin.c b/Src/builtin.c
index 65e0cb1..0f04d14 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -100,7 +100,7 @@ static struct builtin builtins[] =
BUILTIN("popd", BINF_SKIPINVALID | BINF_SKIPDASH | BINF_DASHDASHVALID, bin_cd, 0, 1, BIN_POPD, "q", NULL),
BUILTIN("print", BINF_PRINTOPTS, bin_print, 0, -1, BIN_PRINT, "abcC:Df:ilmnNoOpPrRsSu:v:x:X:z-", NULL),
- BUILTIN("printf", 0, bin_print, 1, -1, BIN_PRINTF, "v:", NULL),
+ BUILTIN("printf", BINF_SKIPINVALID | BINF_SKIPDASH, bin_print, 1, -1, BIN_PRINTF, "v:", NULL),
BUILTIN("pushd", BINF_SKIPINVALID | BINF_SKIPDASH | BINF_DASHDASHVALID, bin_cd, 0, 2, BIN_PUSHD, "qsPL", NULL),
BUILTIN("pushln", 0, bin_print, 0, -1, BIN_PRINT, NULL, "-nz"),
BUILTIN("pwd", 0, bin_pwd, 0, 0, 0, "rLP", NULL),
Messages sorted by:
Reverse Date,
Date,
Thread,
Author