[CWB] [ cwb-Bugs-1685850 ] cqpcl should not return 0 in case of
error
SourceForge.net
noreply at sourceforge.net
Mon Aug 1 01:06:50 CEST 2011
Bugs item #1685850, was opened at 2007-03-22 09:40
Message generated for change (Settings changed) made by andrewhardie
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=1685850&group_id=131809
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: CQP engine
>Group: TODO-4.0
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: Peter Adolphs (futzilogik)
Assigned to: Stefan Evert (schtepf)
Summary: cqpcl should not return 0 in case of error
Initial Comment:
cqpcl always returns 0 as the exit code, also if an error occured. In case of error, it should return a non-zero exit code instead.
----------------------------------------------------------------------
Comment By: Stefan Evert (schtepf)
Date: 2009-08-17 19:08
Message:
A reasonable request, but unfortunately it didn't occur to the CWB
developer that CQP might want to keep track of its internal error status
(except by printing an error message on screen). So there seems to be no
easy way for the cqpcl main loop to detect an error condition and signal it
to the calling program (except a syntax error in the command parser, which
should return an exit code of 1).
Current recommendation: use Perl's interactive CQP interface instead,
which catches the CQP error message.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=1685850&group_id=131809
More information about the CWB
mailing list