Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Process substitution and shell functions



> I can't find anything about this in zsh-3.0.0/etc/FAQ or zsh-3.0.0/etc/BUGS
> so I'm assuming it's fairly new.
It is an old bug. zsh-2.5.0 works well, but zsh-2.5.03 has it.
This is due to some patch in exec.c, probably the big patch from 2.5.01
to 2.5.02 by Richard Coleman (Mon Jul 25 10:30:32 1994) to "allow
suspend/resume pipes ending in a list/loop/function and jobs with
a $(...) while that is running".

function foo { echo $1; head -1 $1 ; head -1 $1 }
foo =(echo hello world)

The variable last_file_list is recovered before the shell function
finishes.

-- Louis Granboulan <Louis.Granboulan@xxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author