home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.1.376
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- Mime-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.1.376
- Problem: "vim --version" and "vim --help" have a non-zero exit code.
- That is unusual. (Petesea)
- Solution: Use a zero exit code.
- Files: src/main.c
-
-
- *** ../vim61.375/src/main.c Sat Mar 8 20:33:32 2003
- --- src/main.c Fri Feb 28 17:06:54 2003
- ***************
- *** 551,557 ****
- Columns = 80; /* need to init Columns */
- info_message = TRUE; /* use mch_msg(), not mch_errmsg() */
- list_version();
- ! mch_exit(1);
- }
- else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0)
- {
- --- 551,557 ----
- Columns = 80; /* need to init Columns */
- info_message = TRUE; /* use mch_msg(), not mch_errmsg() */
- list_version();
- ! mch_exit(0);
- }
- else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0)
- {
- ***************
- *** 2460,2466 ****
- main_msg(_("--help\t\tShow Gnome arguments"));
- # endif
- #endif
- ! mch_exit(1);
- }
-
- #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
- --- 2460,2466 ----
- main_msg(_("--help\t\tShow Gnome arguments"));
- # endif
- #endif
- ! mch_exit(0);
- }
-
- #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
- *** ../vim61.375/src/version.c Sun Mar 9 15:11:38 2003
- --- src/version.c Sun Mar 9 15:12:53 2003
- ***************
- *** 613,614 ****
- --- 613,616 ----
- { /* Add new patch number below this line */
- + /**/
- + 376,
- /**/
-
- --
- You have heard the saying that if you put a thousand monkeys in a room with a
- thousand typewriters and waited long enough, eventually you would have a room
- full of dead monkeys.
- (Scott Adams - The Dilbert principle)
-
- /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
- /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
- \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
- \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
-