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=0.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RDNS_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: from authenticated user by zero.zsh.org with local id 1kiPxy-000BkR-8r; Thu, 26 Nov 2020 22:42:18 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f52.google.com) smtp.remote-ip=209.85.210.52; 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-f52.google.com ([209.85.210.52]:40521) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kiPxf-000BW3-HE; Thu, 26 Nov 2020 22:42:00 +0000 Received: by mail-ot1-f52.google.com with SMTP id 79so3049780otc.7 for ; Thu, 26 Nov 2020 14:41:59 -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=kn3ZVPt8zJyhN7MAZii9EzqTyxbvxatDS435bEOIL9A=; b=HQzZuT1gWSIejhCe7ge+AGXqHTNmc2f3W7ptsnzAuy5+iJ1FlhsRLpASGICb7Gq0+3 o81NmLTjnNvHFYU1BlPIOFHgqXUN8eoFd0ePX5NtyODWOc2T7cQ1yhDSTZ//i/AwFI7c 04/zH4c4qJFAHofin9GluKqyV7J9VhGBYgzCOZnecdhVNlzAqz3wyxBXxfdrqX0ZzTZq b4mv2bnmMkXPoEgX+evVwlhDuWMjJonmXVR7n4jbS+XneasUv61MZFiD0PZa+5AWsX9/ YqH5HQFhLYm1y/9gTAjNzPKbZL/T2lCBZEhslmFQo/K7krL9UtSSJc8cOWzlTW4b3LzM Nbmw== 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=kn3ZVPt8zJyhN7MAZii9EzqTyxbvxatDS435bEOIL9A=; b=gEm/BJKak97ex/hrbJUKyJSADFb/yxNMw3oZKFDWXt/I7r2iE89bwgRYrBsE9bqSGH DpWhjHct+2CBRnc3yB0wLaQ3VpSoxl7HrJ77TX1amnzN115WKe6Slc5f7F9V0EhpkcPI 6x/iYh932jxbysY+0YiGPmRPJ2Q/IDQkV2Enus6mP7ghGaCta8KwoYLzVlcQe/OXjXms L4B+MZrZ9Sq5LE4ToWnPmwuCc9fTp4Sz/ucU7mU9fF8ZJLOGbCbnHLKP/vMZx9zTXMp9 H3EeLklS0jpWRnt28ZKi7QYzxB6DbcfY3VwKtGINBVzsKLqWBBQnqtxkM2nyowLNEMQF PYNA== X-Gm-Message-State: AOAM532+GYufmKmUgZu+wrBBO3T8rPuheYh5GZMIyRzOxkwHOGGJcOtz 5g9Js/Fr/MgorVKqvHXysD/8CFcYhoWehftIPpR5/g== X-Google-Smtp-Source: ABdhPJyHC5lAErlbvpc4oKqBhF6Jxn9S8R0i23RP8Mtpp5TgnlNmLtI1x3fteNKvTgpvaRJYzOIEitmj0c/KS1m9n6U= X-Received: by 2002:a9d:470c:: with SMTP id a12mr3674319otf.161.1606430518457; Thu, 26 Nov 2020 14:41:58 -0800 (PST) MIME-Version: 1.0 References: <20201125131921.vay7h3xk5qn4odgg@chazelas.org> In-Reply-To: From: Bart Schaefer Date: Thu, 26 Nov 2020 14:41:47 -0800 Message-ID: Subject: Re: More rabbit-holes with unset variables To: Felipe Contreras Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47650 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 Thu, Nov 26, 2020 at 1:21 PM Felipe Contreras wrote: > > I asked who objected to the specific behavior I quoted. I'm not going to dig through the austin-group archives to try to distinguish which of the two parts of the quoted behavior (inherit, or otherwise not set) was the source of anyone's objection. I concede that the explanatory paragraph in the rationale did not call out either of those behaviors. The point is that none of what we're discussing is an agreed-upon standard. > On Thu, Nov 26, 2020 at 2:42 PM Bart Schaefer wrote: > > > so a the only useful "declared but not set" variable is a simple > > scalar. > > And by scalar I suppose you mean string. I mean the simplest form of what zsh refers to as "scalar" internally. Yes, that's ordinarily representable in C by "char[]", but in the abstract that doesn't matter. On the other hand, the shell language doesn't really deal in anything else. Everything is designed around file descriptors and argv (char[][]) and performing implicit string splitting/catenation, and except for nameref in ksh there's no way to pass pointers around.