Summary: | exit handler not executed on syntax errors | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | at <at> |
Component: | bash | Assignee: | placeholder <placeholder> |
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P2 | CC: | glebfm, ldv, placeholder |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
at@altlinux.org
2005-07-29 01:19:22 MSD
Compare this to ash: $ ash -ec 'trap "echo rm lock" EXIT; echo lockfile; . ./test.sh' lockfile ./test.sh: 3: Syntax error: ")" unexpected (expecting ";;") rm lock $ Seems to be fixed in bash-3.0 Fixed in 3.1.1-alt1 Fixed in 3.1.1-alt1. |