From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11276 invoked from network); 13 Dec 2020 22:10:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Dec 2020 22:10:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1607897418; b=bCt3b20wXndyAmDJwXz8YOjn8ahhlivptQOV3/v4VU7yHaU2z1xkFBImSWNDtEHFKLkqxGTZ1B L41lfi2K2sOtKRRb1y+1HZ7Vnu/e2l2qNIfTFaG+rxgy7zS9LcBO5OYBvJaXO3FeWhWnllg6BF Yd7DQPrN8ZyGe47Vldc/k7/1ao/sPYqXxRSZP3PLqMDmggUfJbfOiFuVD/Js3y6uMhEiSVM8G3 QHdM0JH38eh0P7wFqqtK3mScu2wPq9Wm/u58jMUwTZfyqvvad3yuhrnFOLiPyB8ZEiOvI4Gtnj F8tCnygIGtD+YS0j+vDAz2sxjwLiWag1o2zy4SptQ3Gpgg==; ARC-Authentication-Results: i=1; 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1607897418; bh=VSj6KpHBoBLolCpPFYIxkHA2NbwCQ4TOCZfw1rUQtug=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=MYq1kTcv75cHyh8nH1tcs3q7er+O6jVEwLc6mrGzQNmA6lDzisXaQUqT3Gg4FsGZeWYUHpDZ9J WnnLcWHCPYkmK9/dctDnGKIzBy7+qOW1KeRH7+zps+hizvK6/y/l90N7cgFWUyeK7fVqdGAJ9/ tOZjIRgDC8aKSHfBAdl/TRGxL7kHXKs1RPMo97EknxJl8tSNvsmVZRr5UHemjYKTv+ZSp6ZzEN +hWLUjySVv35wADicbWgmnEnNHdLtY/QbB19lzoWbmi5o+7QCWucG+duan9bhvydAB3Ij1peT8 67hqfANIQRTDuo7aAFQCwvVUPK5R7p1Kv8hEjtngmYIfSA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=l4j7O+WlKkhjXeRcEJmv5hlFAyXbtBpGMIR3Sb8TuGY=; b=0PlJuhfg26S7i6WjB5JN5gNUVW L0KtNBaYvIfUgCMMevKrwdvTD/WwXMF+xucjIRHjcTyHPqTctztYTSwhKvQ7vyZH4a4IqQJty4w4b /p9XNrsAzDJ2ERzFOwNgxErHLaDgHaAF18e/J3ufd+TlXF+t5Jv3dmR73ahWhwlnw1Yls7Q8ILXwD 9i0BkbaTjo2DFGFYdka4oVKTmDZBZI8ODtn8F4EjcQ26ZRX69U2QTG3LNwwoWAvYGhgRgUvdfcA1c X+g09K/TDQ8ZmQemOt41h8lgo7Wj8juXksueUbtSQyyn/F/v3qShKIM2CmbVtBNroilaZoBMIm09q HjVAQ4IA==; Received: from authenticated user by zero.zsh.org with local id 1koZZI-0008u1-MW; Sun, 13 Dec 2020 22:10:16 +0000 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 Received: from mail-ot1-f43.google.com ([209.85.210.43]:45803) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1koZYz-0008kB-NO; Sun, 13 Dec 2020 22:09:59 +0000 Received: by mail-ot1-f43.google.com with SMTP id h18so13928658otq.12 for ; Sun, 13 Dec 2020 14:09:57 -0800 (PST) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=l4j7O+WlKkhjXeRcEJmv5hlFAyXbtBpGMIR3Sb8TuGY=; b=igcx+pFb+196SPXncCWGljSo3jCaJ49sAwXlqgPzIebYmeVejA9SBHRdc65/Z5wISQ IED0uhURgw0yBdQSBMtTBtx8GxKaHpoj3heNQzb6iAbg/FP2ZZ261pYo84ro1qf8YwCM 4V4OlJuTWhpZaUq3/Mmyv2okoQrds1PWMy7hLBnm5EpvAGstsy2lvRVY9jcBOsXCNU+I wHMFeR38uN2r8qlj0WCY751Q7tHlIWMhr4aVowGzBo60ncxG9eq3aYdYp0N+7xpB5Pvo r85LHrVmPx8JKb3eoaNTzHc/w6cFoY2+xQQ5vjDZrXIlArqwisUhLo48iha0Rrc5PM0r ILvg== X-Gm-Message-State: AOAM530sUizAPJaaFhGn8TgLG3pHO1AbTzIzuCHpCmZ9qHpPrYBcZ2ag 7d8bXZvAHvy7N6AOIRFn65eMYgY20BPsA6s4tgyLNYpnw+Q= X-Google-Smtp-Source: ABdhPJzipsJyI4kQEBiAT/670vJni98wmWGFDCtaCmKsEruXPU0zQAH0cZwFaEpBs8hTP/haMKJKTf16eKbSo/Phm0s= X-Received: by 2002:a9d:208a:: with SMTP id x10mr15622348ota.260.1607897395296; Sun, 13 Dec 2020 14:09:55 -0800 (PST) MIME-Version: 1.0 From: Bart Schaefer Date: Sun, 13 Dec 2020 14:09:42 -0800 Message-ID: Subject: Final (?) update to declarednull branch To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47741 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: 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.