bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][RFC] New 'true' program


From: Felipe W Damasio
Subject: Re: [PATCH][RFC] New 'true' program
Date: Sat, 20 Nov 2004 20:18:57 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040927

        Hi Paul,

Paul Eggert wrote:
No, as it doesn't support "true --version" or "true --help".

        True.

        So can you guys please consider this cleanup then?

        Cheers,

Felipe
--- coreutils-5.1.3/src/true.c.orig     2004-11-20 20:07:13.781095240 -0200
+++ coreutils-5.1.3/src/true.c  2004-11-20 20:07:48.766776608 -0200
@@ -47,13 +47,7 @@
 int
 main (int argc, char **argv)
 {
-  initialize_main (&argc, &argv);
   program_name = argv[0];
-  setlocale (LC_ALL, "");
-  bindtextdomain (PACKAGE, LOCALEDIR);
-  textdomain (PACKAGE);
-
-  atexit (close_stdout);
 
   /* Recognize --help or --version only if it's the only command-line
      argument and if POSIXLY_CORRECT is not set.  */
@@ -67,5 +61,5 @@
                     (char *) NULL);
     }
 
-  exit (EXIT_SUCCESS);
+  return EXIT_SUCCESS;
 }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]