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

Re: command substitution: zsh waits until command exits



On 2007-12-03 19:25:54 -0800, Bart Schaefer wrote:
> Try it this way, where the -e option is not a quoted string:
> 
> ------------------
> #!/usr/bin/env zsh
> 
> echo foo | tee \
> $({ xterm -e zsh -fic "tty >&3 ; exec sleep 99999999" 3>&1 & } | read -E)
> ------------------

Thanks, this works.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



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