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

should $! give the pid of subshell?



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