Bug #2570
closed
Wrong exit code on error (XQuery command line)
Applies to branch:
9.6, 9.7
Fix Committed on Branch:
9.6, 9.7
Fixed in Maintenance Release:
Description
In some cases exit code is 0 when it should be non zero.
Testcase (on Windows):
java -classpath /path/to/saxon9he.jar net.sf.saxon.Query -qs:"node-without-context"
echo exitcode=%ERRORLEVEL%
Output:
Error at char 20 in query on line 1
XPDY0002: The context item for axis step ./node-without-context is absent
Query failed with dynamic error: The context item for axis step ./node-without-context is absent
exitcode=0
Saxon version is: Saxon-HE 9.7.0.1J
- Subject changed from wrong exit code on error to Wrong exit code on error (XQuery command line)
- Category set to Command Line
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6, 9.7 added
Patch committed and tested on both the 9.6 and 9.7 branches.
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.7.0.2 added
Bug fix applied in the Saxon 9.7.0.2 maintenance release
- Fixed in Maintenance Release 9.7.0.3 added
- Fixed in Maintenance Release deleted (
9.7.0.2)
Bug fix applied in the 9.7.0.3 maintenance release. Leave open until fix applied in the 9.6 branch
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.6.0.9 added
- Fixed in Maintenance Release deleted (
9.7.0.3)
Bug fix applied in the Saxon 9.6.0.9 maintenance release.
- Fixed in Maintenance Release 9.7.0.3 added
- Sprint/Milestone set to 9.7.0.3
Please register to edit this issue
Also available in: Atom
PDF