Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More rabbit-holes with unset variables
- X-seq: zsh-workers 47655
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: More rabbit-holes with unset variables
- Date: Thu, 26 Nov 2020 16:09:10 -0800
- Archived-at: <https://zsh.org/workers/47655>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CAH%2Bw%3D7YtBvrpuXUM%3DMuHVRuBjf8uiRozKLJsHvYXJr9Cx%3DJ-rQ%40mail.gmail.com>
- 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
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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=TMXwFbDIa6VZS790X6DgkhWcWj+8BW28IhAU9NkVrSg=; b=hxpWI5Ji48IXJksENpl2HqJ2Czt3Ma1piqsEmV4GPasgqC10MYnje3lD2pL7z/fOlE /yecyusMo+sp88RPDGLlGSBn6Uq4VlASfEyXBQPG8UW11VtX8KVYYaLaz7MuWLIembmy lwd/ZbUZlaOynaaIcSTrjy0NbhMFVCxS3kClHuF/DtBs+R0zv2f9ceePEsQug1uiKUAc wzJFgxSj9lzOoRag4jxPngqS3F1gQUoXXt7rCqI5Gzwk+MKla25p57lCRgQGx4vt1y8U JL7BsZ5i5THMRujOtYjZ95QC7W+0kgPp/eYt1H41ZKjLYLZra856SC53Q5lzIzLSfQD0 r1JA==
- In-reply-to: <CAMP44s0WSt_J7TjyPEKvH9TxzWBvTVFTB-pK26G+9SacYeQrAw@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>
- Sender: zsh-workers-request@xxxxxxx
On Thu, Nov 26, 2020 at 3:45 PM Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
>
> On Thu, Nov 26, 2020 at 4:41 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > 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.
>
> Strings in C are typically declared as "char *", not "char []".
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author