Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-3.1.5-pws-18 substitution bug ?
- X-seq: zsh-workers 6298
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: zsh-3.1.5-pws-18 substitution bug ?
- Date: Mon, 17 May 1999 11:00:29 +0200 (MET DST)
- In-reply-to: Jens Schleusener's message of Sat, 15 May 1999 20:34:55 +0200 (DFT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author