Re: psychiatric help

Ray Andrews <[email protected]> Sun, 5 Apr 2026 11:18:16 -0700
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>

On 2026-04-05 10:39, Mark J. Reed wrote:
> >
> If its output is not going to a terminal, you get the "polite" 
> behavior that outputs one filename per line. Any time you're doing `ls 
> |` or `$(ls)` or `<(ls)`, the output is not going to a terminal, so 
> you get the one-per-line behavior.
So if 'ls' is called within a function that counts as 'not a terminal'?  
Man ... so easy to draw the wrong conclusion.  As above, I thought it 
was the array causing that.
> I still don't know why you need a string and eval instead of just 
> using `$out` directly.

As in my last PM, I need access to the unexpanded tail.  But ... maybe I 
can use 'noglob' and still avoid 'eval', I'll experiment with that.  
Funny thing, 'eval' never did me any harm, but I've soaked up the 
attitude of yourself and Bart and the others that it's best to avoid 
it.  But I'd sure like to be able to grab the command line in ZLE before 
it's processed, that way I could forget about noglob.