Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: More rabbit-holes with unset variables



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