Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: splitting with empty separator.



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