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 21433 invoked from network); 28 Dec 2020 21:00:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Dec 2020 21:00:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1609189235; b=VAwZHhSrGYdztzyevJI+gpGxG9+uoOyUom9AmxIBibZP/9Wd8pXID9MVdvkAMi3OfRZaqJrBov 5qU9Bwu8HZkWAMm6KmOAptYwYUhilMkj0NEU4HQgfpmqoEnFPow85IxX1GMC1FiV7CWDhD5yPl kJpms6l9QpNXrj4DNuGOWDyKywCgwafatZ+65km2+aVpUmL4Z0C+pfBAOauCMVG9gjMOZI2iO/ bftEHJsY+q5OuUx/IRdgjeXda0CWT0AYuMxdVs/n/Aee1028f0hJJ7b1O/PClGNJxvmLVjd2+r jus2j+axe5bqU+lldJabkegUoeR2p6hEnNkECSNMrr6oSQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; 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=1609189235; bh=qRgyB5XiFJXfaXQ4gwiNUYwZS6gAfDGgj/26R9EBHrg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=pG1H6XbvfEbHD/okG1qoNwz2CMcsQheiItm6S0qF4XXdb04GZXFJQPN1dr3JaehuBi2/YwipBO PgHnuYuXIOMuGcXFdCOl0H8ubqinbeoGiPR0ygNFcSgSH1DIU3K0BnFghEAkfpBfH8hzdl19bD DAbHN1qVAvKLyUqG8VlEXp+EuF1Pi1mnFdyJ/NfX65vlwFqrpc63n/Rbd7S8YKc2/WhYdV8SJE 222jGv3PtXGiYgFulMbDuGH+pMev/W8WtseADkORz9lvZGAwAQV0iZ1C0Ru9zAuRNj0r/d5mGy V3tJW9IT7B2qJZl8ggpZA6z6x5Dtoo5EjhBVsSeThxWkwA==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=tI/PNd/qaeYPydaAExeZZ/teP0fn83ip/yqvheX7E3g=; b=GyrQhuGFAYB6YPA97EGEOj5qnh rdVBk96tmPo4iClcoQ62Z8E3xB3B0AdZ4R+feZNIJak4l1ez4Arl7TBHXjYvFXkN49hEiUBNXxMXt d8GvwGc8OjAi79wnJ2z14vRBf4v1FWCzwcyqTw9GmatlbykexLOUc/eaDbS6FcBkcHiVDcGkPPB1a mUQ/kCh3m+wTP+4pjMoBXaLL1YPCdXxA7liwdnyHn/rw8Wk7PCpuWG4d6ehAC2NsrSmAuhfX4471f MHDlp9ElqPIr5bbVuRimBcpFLpd6+1EWWMg4yzXsRTwoktrN/NM85TWi+sdbgpTADfBOr4Ee9F6kM LC9UnkYw==; Received: from authenticated user by zero.zsh.org with local id 1ktzd4-000E51-B9; Mon, 28 Dec 2020 21:00:34 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; 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-oi1-f182.google.com ([209.85.167.182]:34795) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ktzcs-000Dvy-UD; Mon, 28 Dec 2020 21:00:23 +0000 Received: by mail-oi1-f182.google.com with SMTP id s75so12712301oih.1 for ; Mon, 28 Dec 2020 13:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tI/PNd/qaeYPydaAExeZZ/teP0fn83ip/yqvheX7E3g=; b=Xv60QP/eQzls0k4vh1AguGCmXY7o4bm1yIDOPeMR+u15sH6Srt0q07/j3WTJzTTSj/ woT7HhhwEyoTP2u5s4WDLeeaOm7nhYZvo84FNnjxyCW8k9pmgDLJ1oAtpi33Nh9+W4Cp XeFNGfONfy3Jzul1ifYhHLajBzm6yEkJnSK9pV4jgjgupPdJ8bUJ7x39Zyj8z5dLRACO WvEDRHGM6FaaCS+Z8HCS8vqXrOSdWz72sX6oqOD/iij0znMaGrwDivHinHam/IZCswqP c5OmY+2WySE5KnXbsYiW9vjfK5aVUwnklot4kXLuFyAoVZtjkc691Klmt7zCWsyK5rfQ dAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tI/PNd/qaeYPydaAExeZZ/teP0fn83ip/yqvheX7E3g=; b=R0fZE3o+J537mjwbsRdfWFe2LsIMlb+ovwF9yP1tvCBt6tXda9TQ2Eu5V0XPn95xab 2iN++YskDzDQZ05Zb7swv3iGExiIaF184Ut8kmIiZDK/mnwaOfFoI7CayBgKJNE3Jqqx 9d1OOkswKnneV/b/vyenf/bAqc9psnvOl71u+hw8nRVcpo2+WE6P3ku8Cm5ZgLfl44t+ meYq1g5h4jg7Klok2XnbttxMsqN6ecalEdkiMAc97R1bU5oXwF+6BNb4J7cn7KP903CM RcS8Xoc1mZ1bg7+hbAfHhGhPEt8nNgezuT/u0/r/jVfd+bMS7HR3Uu1C9ohBidDDvbMm FLVA== X-Gm-Message-State: AOAM533p02QHJqJxMAxdHGpPK51DnnXQpKSu53nEwEpIFkqF3VCYLGcu qAlXVzzXfPjod0qT2n9TzZRQGU349aVAoihzfg4NQIu6JNc6YQ== X-Google-Smtp-Source: ABdhPJyAWmwK4vOQuDwN7KO13s8OKOmKsUzq72N8RWroAOqg1tqmns5T9oR5QGzHFqESeclAJfOlE5RYJkgGjxIfMqc= X-Received: by 2002:aca:6089:: with SMTP id u131mr515396oib.84.1609189220902; Mon, 28 Dec 2020 13:00:20 -0800 (PST) MIME-Version: 1.0 References: <20201223234711.492603-1-felipe.contreras@gmail.com> In-Reply-To: From: Bart Schaefer Date: Mon, 28 Dec 2020 13:00:10 -0800 Message-ID: Subject: Re: [PATCH] declarednull: felipec's approach To: Felipe Contreras Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" X-Seq: 47773 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: On Mon, Dec 28, 2020 at 12:09 PM Felipe Contreras wrote: > > On Sun, Dec 27, 2020 at 4:06 PM Bart Schaefer wrote: > > > > On Wed, Dec 23, 2020 at 3:47 PM Felipe Contreras > > wrote: > > > > > One other thing that has me scratching my head about your patch ... I > > can't see any reason why it matters that the bit value is (1<<30), but > > if I try, for example, overloading (1<<22) as I did for PM_DECLARED, > > the argument lists of shell functions stop working. > > Because some variables have initially the flag PM_DONTIMPORT (1<<22), > for example IFS, so it's like initially they don't have any value > (i.e. PM_NULL). Yes, but nothing ever looks at PM_DONTIMPORT after setting up the parameter table, and how did the positional parameters get involved, and why does that NOT happen on the "raw" declarednull branch? I guess it has to be something that's not in your diff but that's looking for exactly the PM_NULL bit-pattern, such that omitting PM_UNSET makes that comparison fail.