Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Final (?) update to declarednull branch
- X-seq: zsh-workers 47741
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Final (?) update to declarednull branch
- Date: Sun, 13 Dec 2020 14:09:42 -0800
- Archived-at: <https://zsh.org/workers/47741>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-12/CAH%2Bw%3D7aWZobFs0RGNaZxF38n0QDDB-mNq6Cqe0GhfFBA1ZdsUw%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-ot1-f43.google.com) smtp.remote-ip=209.85.210.43; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=l4j7O+WlKkhjXeRcEJmv5hlFAyXbtBpGMIR3Sb8TuGY=; b=FbdR5IADx2jtfFXtnmsLh1ihy7y8Wv59ROI2s/tThy5XpQMxQeW7F0Kr8zBuIXMoeX av5WPQTLBnCWWxMwMgUmjbwI+XEYJnuLoC1lc4suegZS4+ndh4bZ2gAksbDNJjzpNnYM 0ZeMjyLM40/ALXbHzgapTND8LVCKXtmfxxNwQTTbo3QTSSPuGugURhCnuiWPDUcjQOzE MM58PloDE8UHN1WoRzORSsD2H3J+pT+a9B+SgNJD0l4M9Y28hQUImRuUOL7bPySXEFpk 6fHoE76hxrvcAX4Xnk0CVXjRhmcY1bnnS5V43oXA+MZlSjc6UAJ2wwmVL+AxFCOGxvAp j1IA==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- Sender: zsh-workers-request@xxxxxxx
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author