Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More rabbit-holes with unset variables
- X-seq: zsh-workers 47657
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: More rabbit-holes with unset variables
- Date: Thu, 26 Nov 2020 18:30:55 -0600
- Archived-at: <https://zsh.org/workers/47657>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CAMP44s3s0dXtirZhi5e_Tir%2B3KKn2Kw4hseEj0uH12a7HB5Y%3DQ%40mail.gmail.com>
- 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
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <CAH+w=7YtBvrpuXUM=MuHVRuBjf8uiRozKLJsHvYXJr9Cx=J-rQ@mail.gmail.com>
- 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>
- References: <CAH+w=7Zag5MG5D=cRS2UMSsqJ0t=iw5MH9j8=HBO1Q77nbs03w@mail.gmail.com> <20201125131921.vay7h3xk5qn4odgg@chazelas.org> <CAMP44s0-ki=TBzTwnqx10FcTLX4mbphwN88UCx0+h97JTecBWA@mail.gmail.com> <CAH+w=7bs9E7whJLugMLOXG05R-2S8Hjt+OOKK_KN+SMxv-Vvaw@mail.gmail.com> <CAMP44s2Ge-pOn1-gEXkq=oJX7ohL-b_20s9mJZAo1LB=ow+Duw@mail.gmail.com> <CAH+w=7bHCrpwbkZBOgwjwF7M9uo+1_ZEa53hxSwE2fuuBuQfyw@mail.gmail.com> <CAMP44s0WSt_J7TjyPEKvH9TxzWBvTVFTB-pK26G+9SacYeQrAw@mail.gmail.com> <CAH+w=7YtBvrpuXUM=MuHVRuBjf8uiRozKLJsHvYXJr9Cx=J-rQ@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Thu, Nov 26, 2020 at 6:09 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author