Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: splitting with empty separator.
- X-seq: zsh-workers 11370
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: splitting with empty separator.
- Date: Mon, 15 May 2000 13:40:14 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Mon, 15 May 2000 11:31:59 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> ...
>
> Now here's 3.1.7-pre-3 with 11368 applied:
>
> zagzig% a="$(print -P '\0')"
> zagzig% b=(${(s::)a}); print $#b
> 2
> zagzig% print -R - "$b" | cat -v
> ^@
> zagzig% print -R - "$a" | cat -v
> ^@
>
> What's the second character in $b in 3.1.7-pre-3?
Eh?
% ./zsh -f
% a="$(print -P '\0')"
% b=(${(s::)a}); print $#b
1
% x="$b[1]"
% echo $#x
1
Does anyone else see the `2' (it would be `second element')?
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author