Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: Initializations of named references with an empty string should trigger an error
- X-seq: zsh-workers 53668
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Philippe Altherr <philippe.altherr@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: BUG: Initializations of named references with an empty string should trigger an error
- Date: Fri, 23 May 2025 02:14:07 +0200
- Archived-at: <https://zsh.org/workers/53668>
- In-reply-to: <CAH+w=7bxZfL+-bLv==zX1E269spUCmumpeCH2-ynAFsdwDzm=Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYcht34aJpA6JB-ssghkRtLqAMtZRDxNvi6sCRSWaf1HNrHg@mail.gmail.com> <CAH+w=7YTEFH5_xB8v2S8WwGxwGzt=drqfnnSERYnpKbU-opsrw@mail.gmail.com> <CAGdYchux0PiNnfnyYkjx5HEiaQBsrHRT0xMLd=Jp5rB0VtAQNQ@mail.gmail.com> <CAHYJk3T6n_Vj2jCJX9shB1a=9GdBx3hYyuadJ69iE5qE+8=vnQ@mail.gmail.com> <CAGdYchvWS4QZ367hJfqH_xz4EzCLPbMe8mH34eegiwND0ngSJw@mail.gmail.com> <CAH+w=7bxZfL+-bLv==zX1E269spUCmumpeCH2-ynAFsdwDzm=Q@mail.gmail.com>
On Thu, May 22, 2025 at 11:52 PM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> > On Thu, May 22, 2025 at 6:36 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >>
> >> I'll just remove the third line.
>
> I was thinking more of providing examples that someone might see in
> (other people's) code and wonder what they meant.
My thinking was that this documentation might cause a further
proliferation of people adding these pointless quotes, thinking they
make a difference. (A lot of people have weird misconceptions about
how quotes work in shells already.) It's certainly minor enough that I
won't push back more on it.
> >> (Other identical commands would be
> >> typeset"" -n"" pname= and typese"t" -"n" pname"=" for example, which I
> >> think everyone will agree would be silly to list.)
>
> They're not identical if you consider that typeset is a reserved word
> and typese"t" etc. are just a builtin, but that wasn't ever the point.
Right, I got a bit carried away with adding quotes I suppose :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author