[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] exit status
From: |
Shigio Yamaguchi |
Subject: |
Re: [PATCH] exit status |
Date: |
Sun, 02 Mar 2003 00:36:47 +0900 |
Committed. Thank you.
> According to GNU Coding Standards, when "--help" is specified,
> the program should exit successfully.
>
> ? gtags/.deps
> ? gtags/Makefile
> ? gtags/Makefile.in
> ? gtags/const.h
> ? gtags/gtags
> ? gtags/gtags.1
> ? htags/Makefile
> ? htags/Makefile.in
> ? htags/const.pl
> ? htags/htags
> ? htags/htags.1
> Index: gtags/gtags.c
> ===================================================================
> RCS file: /cvsroot/global/global/gtags/gtags.c,v
> retrieving revision 1.60
> diff -u -r1.60 gtags.c
> --- gtags/gtags.c 23 Feb 2003 13:02:02 -0000 1.60
> +++ gtags/gtags.c 27 Feb 2003 12:26:54 -0000
> @@ -47,6 +47,7 @@
> #include "const.h"
>
> static void usage(void);
> +static void help(void);
> void signal_setup(void);
> void onintr(int);
> int match(char *, char *);
> @@ -106,7 +107,7 @@
> {
> fputs(usage_const, stdout);
> fputs(help_const, stdout);
> - exit(2);
> + exit(0);
> }
>
> static struct option const long_options[] = {
> Index: htags/htags.in
> ===================================================================
> RCS file: /cvsroot/global/global/htags/htags.in,v
> retrieving revision 1.95
> diff -u -r1.95 htags.in
> --- htags/htags.in 24 Feb 2003 13:37:07 -0000 1.95
> +++ htags/htags.in 27 Feb 2003 12:26:55 -0000
> @@ -682,7 +682,7 @@
> }
> if ($show_help) {
> print STDOUT $help_const;
> - exit 1;
> + exit 0;
> }
> if ($'gflag) {
> local($command) = $'gtags;
>
> ----
> Hideki IWAMOTO address@hidden
>
>
> _______________________________________________
> Bug-global mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-global
>
>
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] exit status,
Shigio Yamaguchi <=