Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug involving subshell exit status in functions fixed?
- X-seq: zsh-users 11787
- From: "Nathan Collins" <nathan.collins@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Bug involving subshell exit status in functions fixed?
- Date: Mon, 20 Aug 2007 22:58:53 -0500
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LSWXlVlMa+5LC2q8p93LLl5aLn6WP1wfKCRXcEUJAeQ23kjMQoHuJbjDxJzhUXg3NfNGhIkiIITcyOY1NSBZ/bQ+EbTs1sz8rYfRoi87ndHi4jvLaxMdnQOPpi0YLvtaAP8rzfUXqhb0vRifKZgskiZqZBw4YWnH7v99bGVZHnI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FrOxneRx1H6fkjPg1AtNgu3FFqZwa3IIMNXukmcdoTdu2UuWOzKS2mtbl+9xX7zIglKKghfkFy02+1jsv/2/5XxmZZxiFPUoorV6qVbvBBI9aTGsArvngsz3Fq1fQhvAz+2V5zQSbKsC9tSSQoN/rEfxi05c5qGg6YN+yF/FlR8=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi zsh-users,
This is a simplified version of something that got me really confused
when I tried to run a bash script in zsh.
In zsh-4.2.3, zsh-4.3.4, and bash
$ (exit 1)
$ echo $?
1
in zsh-4.3.4 and bash
$ function f {
(exit 1)
echo $?
}
$ f
1
but in zsh-4.2.3
$ function f {
(exit 1)
echo $?
}
$ f
0
So, although I can't find a mention of it because I don't know what to
search for, I think this is a bug that's fixed in the development
version of zsh. Is there a work around for this in 4.2.3 (the version
installed on the machines where my script will be run is actually
4.2.0, but it has the same "problem" as 4.2.3)?
If this isn't a bug that was fixed, could someone explain what's going on.
Thanks,
-nathan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author