Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command substitution: zsh waits until command exits
- X-seq: zsh-users 12280
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: command substitution: zsh waits until command exits
- Date: Tue, 4 Dec 2007 03:03:25 +0100
- In-reply-to: <071203104107.ZM4640@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <071130073719.ZM18090@xxxxxxxxxxxxxxxxxxxxxx> <20071130163155.GL5855@xxxxxxxxxxxxxxxxxxx> <071130185827.ZM18402@xxxxxxxxxxxxxxxxxxxxxx> <20071202021652.GO5855@xxxxxxxxxxxxxxxxxxx> <071201210744.ZM20044@xxxxxxxxxxxxxxxxxxxxxx> <20071202152254.GP5855@xxxxxxxxxxxxxxxxxxx> <071202102717.ZM2757@xxxxxxxxxxxxxxxxxxxxxx> <20071203011131.GT5855@xxxxxxxxxxxxxxxxxxx> <20071203170225.GD5855@xxxxxxxxxxxxxxxxxxx> <071203104107.ZM4640@xxxxxxxxxxxxxxxxxxxxxx>
On 2007-12-03 10:41:07 -0800, Bart Schaefer wrote:
> On Dec 3, 6:02pm, Vincent Lefevre wrote:
> }
> } #!/usr/bin/env zsh
> }
> } echo foo | tee \
> } $({ xterm -e 'zsh -fic "tty >&3 ; exec sleep 99999999"' 3>&1 & } | read -E)
> }
> } and run it, then lots of xterms are started recursively!
>
> What did you name the script? I can't reproduce this.
I've found the problem: this comes from the line
SHELL=${0#-}
I have in my ".zshenv". Somewhere .zshenv is sourced with $0 having
the name of the script. Is there any reason?
IIRC, I have this line to be able to re-exec the shell with "exec $SHELL".
--
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