https://bugs.documentfoundation.org/show_bug.cgi?id=155415
Bug ID: 155415
Summary: Exit status is zero even with fatal command-line
errors
Product: LibreOffice
Version: 7.6.0.0 alpha1+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: framework
Assignee: [email protected]
Reporter: [email protected]
Description:
When using libreoffice as a non-interactive command line tool, the exit status
seems to always be zero even if fatal errors occurred. This causes
unsuspecting scripts to continue their merry way without realizing that
something went horribly wrong.
The Linux/Unix rule is that a ZERO exit status means "success" and non-zero
means otherwise.
Steps to Reproduce:
1. libreoffice --convert-to "bogus" /dev/null
>Error: source file could not be loaded
2. echo $?
Actual Results:
0 exit status
Expected Results:
non-zero exit status
Reproducible: Always
User Profile Reset: No
Additional Info:
For reference, here is a complete command to extract sheets from a spreadsheet
into .csv files in the current directory. You can substitute valid and invalid
input file names
to test "working" and "failing" cases:
libreoffice --convert-to "csv:Text - txt - csv
(StarCalc):44,34,76,1,,,true,,true,false,-1" FILE.xlsx
--
You are receiving this mail because:
You are the assignee for the bug.