Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
should $! give the pid of subshell?
- X-seq: zsh-users 14611
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: Zsh list <zsh-users@xxxxxxx>
- Subject: should $! give the pid of subshell?
- Date: Wed, 25 Nov 2009 12:17:43 -0500
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: gak@xxxxxxxxxxxxxx
Hi,
If I do
% ( cd directory && command ) &
% echo $!
should I get the pid of 'command' or of the subshell?
In bash, I get the pid of a subshell, but in zsh, there does
not even seem to be a subshell, and I get the pid of 'command'.
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author