* zsh-3.1.5-pws-18 substitution bug ?
@ 1999-05-15 18:34 Jens Schleusener
0 siblings, 0 replies; 2+ messages in thread
From: Jens Schleusener @ 1999-05-15 18:34 UTC (permalink / raw)
To: zsh-workers
Hi,
between versions zsh-3.1.5-pws-16 and zsh-3.1.5-pws-18 there was
introduced probably a bug (?) regarding substitutions like
${*:-word}
that no longer works if $* name is empty or undefined.
Greetings
Jens
--
Dr. Jens Schleusener debis Systemhaus
phone: +49 (551) 709-2493 Solutions for Research
fax: +49 (551) 709-2169 Bunsenstr.10
mail: Jens.Schleusener@dlr.de D-37073 Goettingen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: zsh-3.1.5-pws-18 substitution bug ?
@ 1999-05-17 9:00 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-05-17 9:00 UTC (permalink / raw)
To: zsh-workers
Jens Schleusener wrote:
> between versions zsh-3.1.5-pws-16 and zsh-3.1.5-pws-18 there was
> introduced probably a bug (?) regarding substitutions like
>
> ${*:-word}
>
> that no longer works if $* name is empty or undefined.
multsub() didn't set `*isarr = 0' when returning a joined array.
Bye
Sven
--- os/subst.c Fri May 14 09:08:03 1999
+++ Src/subst.c Mon May 17 10:57:42 1999
@@ -285,6 +285,8 @@
}
*s = sepjoin(r, NULL);
mult_isarr = omi;
+ if (isarr)
+ *isarr = 0;
return 0;
}
if (l)
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-05-17 9:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-15 18:34 zsh-3.1.5-pws-18 substitution bug ? Jens Schleusener
1999-05-17 9:00 Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).