zsh-workers
 help / color / mirror / code / Atom feed
* Final (?) update to declarednull branch
@ 2020-12-13 22:09 Bart Schaefer
  2020-12-18  5:13 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2020-12-13 22:09 UTC (permalink / raw)
  To: Zsh hackers list

This was pushed a few days ago but I was waiting to see if anyone
commented on the $empty[(i)] thread.  No one has, so I have left that
as it was.

The current tip of the declarednull branch in zsh git has added a test
script (E03) for the changes, leaving the original tests alone.  As
suggested elsewhere, the POSIXBUILTINS option enables this behavior.
There's exactly one test for this so it's easily swapped for some
other (new?) option.  That does mean, though, that you can do this:

() {
  typeset -ga zsharray
  setopt localoptions posixbuiltins
  typeset -ga posixarray
}
typeset -p zsharray posixarray
print $+zsharray $+posixarray

which yields

typeset -a zsharray=( )
typeset -a posixarray
1 0

Any further remarks from other maintainers?  If we're interested in
merging this, I'll post a complete patch for a reference X-Seq number.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-18  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13 22:09 Final (?) update to declarednull branch Bart Schaefer
2020-12-18  5:13 ` Bart Schaefer

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).