Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH (not final)] (take three?) unset "array[$anything]"
On Wed, 2021-06-09 at 16:31 -0700, Bart Schaefer wrote:
> On Sat, Jun 5, 2021 at 11:18 AM Peter Stephenson
> <p.w.stephenson@xxxxxxxxxxxx> wrote:
> >
> > On Fri, 2021-06-04 at 12:25 -0700, Bart Schaefer wrote:
> > > On Thu, Jun 3, 2021 at 7:42 AM Peter Stephenson
> > > <p.w.stephenson@xxxxxxxxxxxx> wrote:
> > > >
> > > > assemble a table of how they're handled now and with the
> > > > two most promising proposed fixes.
> > >
> > > Are the samples I posted in workers/49005 adequate?
> >
> > Looks very much like what's needed. Thanks.
>
> How do we make the call on what to do, then?
>
> The cases literal fails on are, as might be expected, those in which
> the workaround adds extra backslashes. Stripquote works for most of
> those because it peels the extra backslash off again ... but that's
> exactly the behavior which Stephane points out "otherwise serves no
> purpose".
>
> I still feel literal is the best option despite potentially breaking
> more workarounds, because it means the workarounds can just be removed
> rather than modified.
I don't have a killer argument, but what you just said sounds like the
best we've got, so I'd certainly be happy to vote for that, in the
absence of a magic wand.
I'm wondering about something we could do that would ease the
transition, but I think I've convinced myeelf that just adds yet more
unwanted complexity.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author