Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Disabling null elision (was: Re: Most Recent File)
- X-seq: zsh-users 27293
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Disabling null elision (was: Re: Most Recent File)
- Date: Mon, 25 Oct 2021 14:05:54 -0700
- Archived-at: <https://zsh.org/users/27293>
- In-reply-to: <048e0b3d-6da9-4905-b1ad-253647cea0d3@www.fastmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAP+y1xC3Dx74sBaCf8mgmEcOMh+hUH6zAdt236k=JTjw4-cBqQ@mail.gmail.com> <CF77Q0TPEKI8.1NCL83P9Z0HV3@kbvv> <YXS6sdovNFVnDAmr@gmx.de> <CAN=4vMrfKTP6UAAEA=A6WFWP6_0CuRJtEorDK+NcGLd4mkuEow@mail.gmail.com> <20211025194508.GB8612@tarpaulin.shahaf.local2> <CAN=4vMpZbLxe4navMTjRaKxogemJqnqcre6NuK3v8V6xVgCzRg@mail.gmail.com> <048e0b3d-6da9-4905-b1ad-253647cea0d3@www.fastmail.com>
On Mon, Oct 25, 2021 at 1:41 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> I don't see why a function's caller should decide whether the callee
> should or shouldn't elide nulls. I think the function's author should
> make that decision. [...] Having some
> way to provide packaged code to others in a way that the code will
> run under predictable syntax would be nice…
Isn't that what
emulate zsh [options] -c 'autoload -U packagebootstrapper'
is for? Yeah, some syntactic sugar would be nice (e.g., it's a pain
to have to quote the argument of the -c option, rather than [say]
using a code block in braces).
Anyway, we haven't yet explored all the ramifications of changing null
elision. What effect does it have on $(...) in an array context, for
example? Any?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author