zero exit status on syntax error in graphviz 2.36.0

Bug #1694108 reported by Sebastian Bank
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
graphviz (Ubuntu)
New
Undecided
Unassigned

Bug Description

unlike in version 2.38, graphviz 2.36.0 does not return a non-zero exit status on syntax errors:

$ echo 'nongraph' | dot -Tsvg && echo $?
Warning: <stdin>: syntax error in line 1 near 'nongraph'
0

(echo should not be executed: $? should be 1)

$ dot -V
dot - graphviz version 2.36.0 (20140111.2315)

$ apt-cache policy graphviz
graphviz:
  Installed: 2.36.0-0ubuntu3.2

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

AFAIU, the following change needs to be backported:
https://github.com/ellson/graphviz/commit/181433391b1ea19caf999f91b14a50f0499b831e

Upstream bugs:
https://github.com/ellson/graphviz/issues/191 = http://www.graphviz.org/mantisbt/view.php?id=2521
https://github.com/ellson/graphviz/issues/243 = http://www.graphviz.org/mantisbt/view.php?id=2470

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.