aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2014-09-30 09:59:28 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2014-09-30 09:59:28 -0400
commitd58dd2f32dc90742a9759b70114a39a55550a66a (patch)
treeb118c47e35eb9535a67fa3bd8586d38ae420ab35
parent1086474bc51fc31e15d72df27b529b1015cd33aa (diff)
parent2072cca806ac43a5ee0d422749e9e0c5f7611d47 (diff)
downloadegawk-d58dd2f32dc90742a9759b70114a39a55550a66a.tar.gz
egawk-d58dd2f32dc90742a9759b70114a39a55550a66a.tar.bz2
egawk-d58dd2f32dc90742a9759b70114a39a55550a66a.zip
Merge branch 'gawk-4.1-stable'
-rw-r--r--ChangeLog6
-rw-r--r--main.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e2a643f..c5f18868 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-09-29 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * main.c (main): In optlist, it should say "h", not "h:", since there
+ is no argument for the help option. Thanks to Joep van Delft for
+ the bug report.
+
2014-09-29 Arnold D. Robbins <arnold@skeeve.com>
* gawkapi.h: Minor edits to sync with documentation. Does not
diff --git a/main.c b/main.c
index 41f10a17..3e9c18e1 100644
--- a/main.c
+++ b/main.c
@@ -212,7 +212,7 @@ main(int argc, char **argv)
/*
* The + on the front tells GNU getopt not to rearrange argv.
*/
- const char *optlist = "+F:f:v:W;bcCd::D::e:E:gh:i:l:L:nNo::Op::MPrStVY";
+ const char *optlist = "+F:f:v:W;bcCd::D::e:E:ghi:l:L:nNo::Op::MPrStVY";
bool stopped_early = false;
int old_optind;
int i;