mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-29 16:39:53 +02:00
minor fixes; bad printf -v return status
This commit is contained in:
+19
-1
@@ -1173,7 +1173,7 @@ builtins/common.c
|
||||
clarity
|
||||
|
||||
arrayfunc.c
|
||||
- assign_array_element: sanity check: make sure that the suubscript
|
||||
- assign_array_element: sanity check: make sure that the subscript
|
||||
returned by array_variable_name consumes the entire NAME, otherwise
|
||||
flag it as a subscript error. This keeps things like
|
||||
`KEY=' ]'; read assoc[$KEY] <<< hello' from assigning to incomplete
|
||||
@@ -1691,3 +1691,21 @@ builtins/shopt.def
|
||||
----
|
||||
doc/{bash.1,bashref.texi}
|
||||
- noexpand_translation: add description of new option
|
||||
|
||||
8/16
|
||||
----
|
||||
builtins/printf.def
|
||||
- printf_builtin: initialize retval after parsing arguments, since we
|
||||
use it for the `v' option. Bug report from Keith Thompson
|
||||
<Keith.S.Thompson@gmail.com>
|
||||
|
||||
lib/sh/unicode.c
|
||||
- u32tocesc: fix typo that returned \uXXXXXXXX instead of \UXXXXXXXX.
|
||||
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992257 by
|
||||
<nabijaczleweli@nabijaczleweli.xyz>
|
||||
|
||||
8/17
|
||||
----
|
||||
siglist.c
|
||||
- include command.h before general.h for PARAMS and prototypes. Report
|
||||
from Osipov, Michael (LDA IT PLM) <michael.osipov@siemens.com>
|
||||
|
||||
+1
-2
@@ -257,8 +257,6 @@ printf_builtin (list)
|
||||
#endif
|
||||
|
||||
conversion_error = 0;
|
||||
retval = EXECUTION_SUCCESS;
|
||||
|
||||
vflag = 0;
|
||||
|
||||
reset_internal_getopt ();
|
||||
@@ -319,6 +317,7 @@ printf_builtin (list)
|
||||
|
||||
format = list->word->word;
|
||||
tw = 0;
|
||||
retval = EXECUTION_SUCCESS;
|
||||
|
||||
garglist = orig_arglist = list->next;
|
||||
|
||||
|
||||
+1
-1
@@ -145,7 +145,7 @@ u32tocesc (wc, s)
|
||||
if (wc < 0x10000)
|
||||
l = sprintf (s, "\\u%04X", wc);
|
||||
else
|
||||
l = sprintf (s, "\\u%08X", wc);
|
||||
l = sprintf (s, "\\U%08X", wc);
|
||||
return l;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* siglist.c -- signal list for those machines that don't have one. */
|
||||
|
||||
/* Copyright (C) 1989-2009 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1989-2021 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#if !defined (HAVE_SYS_SIGLIST) && !defined (HAVE_UNDER_SYS_SIGLIST) && !defined (HAVE_STRSIGNAL)
|
||||
|
||||
#include <stdio.h>
|
||||
#include "command.h"
|
||||
#include "general.h"
|
||||
#include <signal.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user