Package: at
Version: all


at command was returnd wrong value.

 # at -V
   at version 3.1.8
   Bug reports to: [EMAIL PROTECTED] (Thomas Koenig)
   Garbled time
 # echo $?
 1

It is 0 when normal return.


I suggest that the return value be corrected.


It is common issue and related to source code only.

Simple fix:
--- at-3.1.8/at.c.org   2002-01-18 07:15:27.000000000 +0300
+++ at-3.1.8/at.c       2005-01-25 18:28:31.000000000 +0300
@@ -804,9 +804,11 @@ main(int argc, char **argv)
     /* end of options eating
      */

-    if (disp_version)
+    if (disp_version) {
        fprintf(stderr, "at version " VERSION "\n"
           "Bug reports to: [EMAIL PROTECTED] (Thomas Koenig)\n");
+       exit(EXIT_SUCCESS);
+    }

     /* select our program
      */



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to