Re: psychiatric help

Bart Schaefer <[email protected]> Mon, 6 Apr 2026 13:17:39 -0700
Newsgroups gmane.comp.shells.zsh.user
Message-ID <CAH+w=7br+GP=rwDy=ywuDwftQy2to0yUS4reSVAypyK7yvUrcg@mail.gmail.com>
On Mon, Apr 6, 2026 at 10:34 AM Ray Andrews <[email protected]> wrote:
>
> Na, all I want is to be able to *read* the unexpanded tail.

Except that's not all you want to do when you add that ,H thing?

> that would do it.  Dunno, I guess it can't be explained, but I feel in
> my C guts that a command should be able to interrogate it's own
> invocation string as a matter of first principles.

At the C level, it can.  But "invocation string" in that context is
the entire post-globbing, post-expansion contents.

> But if I could just sneak a peek at 3a) ...

Another problem is that what we're calling 3a is constantly changing.
If you setopt xtrace, every line that's written by the trace
represents a new 3a.  You need a way to filter for the ones you care
to capture.