Project

General

Profile

cdo seldate exits with 0 status albeit date format is wrong

Added by Stephane Senesi about 9 years ago

If operator seldate is provided with ill-formed dates, it prints a warning such as

"cdo(2) seldate (Warning): Date between 198001.0000 and 198002.0000 not found!",

but it exits with status=0; this is not compliant with Unix conventions;

I know that, in that case, the output file is not created, and this could be a way to double-check , but I regret to have to double-check in all scripts. Is it a consistent convention across CDO operators ?


Replies (1)

RE: cdo seldate exits with 0 status albeit date format is wrong - Added by Uwe Schulzweida about 9 years ago

You are right! An abort message is missing and the exit status should be != 0. I will change it in the next release.

Cheers, Uwe

    (1-1/1)