[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/info.c (main) <--output>: Exit with status
From: |
Gavin D. Smith |
Subject: |
branch master updated: * info/info.c (main) <--output>: Exit with status of 1, not 0, if there was an error. Report from Hilmar Preusse <address@hidden>. |
Date: |
Sun, 16 Oct 2022 07:35:46 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 15408a7b46 * info/info.c (main) <--output>: Exit with status of 1, not
0, if there was an error. Report from Hilmar Preusse <hille42@web.de>.
15408a7b46 is described below
commit 15408a7b46ae1c0deadaf386481cb32a91208374
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Oct 16 12:35:37 2022 +0100
* info/info.c (main) <--output>: Exit with status of 1, not 0,
if there was an error. Report from Hilmar Preusse <hille42@web.de>.
---
ChangeLog | 5 +++++
info/info.c | 9 ++++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0138ad4258..18079094d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-10-16 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * info/info.c (main) <--output>: Exit with status of 1, not 0,
+ if there was an error. Report from Hilmar Preusse <hille42@web.de>.
+
2022-10-15 Jakub Wilk <jwilk@jwilk.net> (tiny change)
* doc/texinfo.texi (Info Format Cross Reference): Fix punctuation.
diff --git a/info/info.c b/info/info.c
index 63ea96f5f1..23f849d46e 100644
--- a/info/info.c
+++ b/info/info.c
@@ -1059,11 +1059,14 @@ There is NO WARRANTY, to the extent permitted by
law.\n"),
/* --output */
if (user_output_filename)
{
- if (error)
- info_error ("%s", error);
-
preprocess_nodes_p = 0;
dump_nodes_to_file (ref_list, user_output_filename, dump_subnodes);
+
+ if (error)
+ {
+ info_error ("%s", error);
+ exit (1);
+ }
exit (0);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/info.c (main) <--output>: Exit with status of 1, not 0, if there was an error. Report from Hilmar Preusse <address@hidden>.,
Gavin D. Smith <=