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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RDNS_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: from authenticated user by zero.zsh.org with local id 1kiRfZ-000G9y-EG; Fri, 27 Nov 2020 00:31:25 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wr1-f47.google.com) smtp.remote-ip=209.85.221.47; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wr1-f47.google.com ([209.85.221.47]:38271) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kiRfH-000Fvl-5h; Fri, 27 Nov 2020 00:31:07 +0000 Received: by mail-wr1-f47.google.com with SMTP id p8so3891435wrx.5 for ; Thu, 26 Nov 2020 16:31:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L1fGkMMqm71Hx6+1XZOugeMMTB4u01BFvBMA20kbsCc=; b=B1dgSt1BWQSzJR/igGIUSvBavRyL6+4cOiNPlVHzMl/J3ZY+E4hE0MKFOP2vs5yeKI Q5HtwXshQzDGioBd69lnXQpOnZ3SMU0wmBhpz3ao8SwRXSK3G+lEAYmzc8UYOnUgNh40 /mgHAx47nxFbXJui/AQJsaGDaRsRA/5a8p8yPINNRDJh9jBFXLt31NjvtZoeup86zT8p k3XvIc6vEf/R3hs/WBCCdNcb66AHhMkoFhXcUsp1H21/LBmgpOJnv2YogVv/hCl5h5xW a+pWu+DiRkRu7d7AyHWCSXtQlfyFwoj0GRINMGWlUJv9fxYZQp0gCYBloRoPamsiyNu9 JC8A== 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=L1fGkMMqm71Hx6+1XZOugeMMTB4u01BFvBMA20kbsCc=; b=HT0/A5InQ3j1V6dFrU6pFA/Fuxwzn1BbLoIhw94eG0Wrq3ekva/+8d9K5uTQET3iS0 zEW6uQEt42KqQQwLe+GKFlU3Yk1WlTXt4QEB2xgVzTNQx5tyuN50fkYkZXr8s9FN37z+ 0RIEll+hK60ofa7XA2r94A0+KCIdKQabQAap4EQ5dJ0qnHjIjg8BtXYTtoqKVYZhficy H6hvAiUBPcbM22mQOc/iHp+1R9z/yvTHdqwjFnp/2wrtDZzVq/QLQ9l1gbzgULiO5a2C Ia2vu95bbZrfZ+Eue+4EPyyoDcgWhmOiKIsY7yvVJkPlW9Xi8u/fAubKvsQlfV+xeIZu a1gw== X-Gm-Message-State: AOAM532h5LGPwZxo7Z83edfz3gkZbyTDzdP4nw4QbPzk1G8h6LmuowVL T2hf+adxytel3qrunp0bZ6/EinyxhqGuAidA8cqPpGcmzWuIXw== X-Google-Smtp-Source: ABdhPJy3OyljYOaGyW8RDd7NvbnP6jI5uWGm60Xjm7i6LOTy2i5NIK+JUCMYgk/IUAcPtN77JRB0Ltqib1wFRoKct5A= X-Received: by 2002:adf:e788:: with SMTP id n8mr6994315wrm.84.1606437066743; Thu, 26 Nov 2020 16:31:06 -0800 (PST) MIME-Version: 1.0 References: <20201125131921.vay7h3xk5qn4odgg@chazelas.org> In-Reply-To: From: Felipe Contreras Date: Thu, 26 Nov 2020 18:30:55 -0600 Message-ID: Subject: Re: More rabbit-holes with unset variables To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47657 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 6:09 PM Bart Schaefer wrote: > How strings in C are typically declared and how scalars are > represented in zsh are not the same thing. > > I deliberately chose to write char[] to demonstrate that zsh scalars > are never null pointers. But we were not talking about zsh, we were talking about shell in general. Specifically the POSIX standard. You are mixing and matching. First speaking about POSIX, then about scalars, then about "char []", then you say "the shell language doesn't really deal in anything else." In the context of shell in general they are strings (scalars and "char []" are zsh-specific). -- Felipe Contreras