]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20180831 snapshot
authorChet Ramey <chet.ramey@case.edu>
Tue, 4 Sep 2018 20:43:40 +0000 (16:43 -0400)
committerChet Ramey <chet.ramey@case.edu>
Tue, 4 Sep 2018 20:43:40 +0000 (16:43 -0400)
CWRU/CWRU.chlog
builtins/printf.def
lib/readline/text.c

index 236ee9ba073e74a94183fdb7348625a1d43a9cf3..90501dd7381c24bda0573b1aa60fa3f9408a4238 100644 (file)
@@ -4245,3 +4245,10 @@ execute_cmd.c
          unfreeze_jobs_list
        - execute_pipeline: set up lastpipe_cleanup with old value of
          jobs_list_frozen
+
+                                   9/3
+                                   ---
+builtins/printf.def
+       - getuintmax,getfloatmax: on a conversion error, return as much of the
+         value as we were able to convert instead of 0. Fixes bug reported
+         by Robert Elz <kre@bmunnari.OZ.AU>
index fc0892918eb2a7232487a313c29b0ee722d64843..1f76c25f7dc8d7860f18574e0ac38527ece135e8 100644 (file)
@@ -1198,8 +1198,10 @@ getuintmax ()
   if (*ep)
     {
       sh_invalidnum (garglist->word->word);
+#if 0
       /* Same POSIX.2 conversion error requirements as getintmax(). */
       ret = 0;
+#endif
       conversion_error = 1;
     }
   else if (errno == ERANGE)
@@ -1227,8 +1229,10 @@ getfloatmax ()
   if (*ep)
     {
       sh_invalidnum (garglist->word->word);
+#if 0
       /* Same thing about POSIX.2 conversion error requirements. */
       ret = 0;
+#endif
       conversion_error = 1;
     }
   else if (errno == ERANGE)
index 81de2a99c97b3f48f4150ab1949080599e193882..15e1a51eb9d26edecf2b5da3da4ec0a7c3bc6f65 100644 (file)
@@ -297,7 +297,7 @@ _rl_forward_char_internal (int count)
 #endif
 
     if (rl_end < 0)
-       rl_end = 0;
+      rl_end = 0;
 #else
   point = rl_point + count;
   if (point > rl_end)