Bash-5.3-alpha release

This commit is contained in:
Chet Ramey
2024-04-22 10:33:38 -04:00
parent f3b6bd1945
commit 622d318652
700 changed files with 136534 additions and 96420 deletions
+9 -14
View File
@@ -4,7 +4,7 @@
/* Original version by tromey@cns.caltech.edu, Fri Feb 7 1992. */
/* Copyright (C) 1993-2020 Free Software Foundation, Inc.
/* Copyright (C) 1993-2020,2022 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -41,12 +41,11 @@
#include "shell.h"
#include <readline/readline.h>
static int _strcompare PARAMS((char **, char **));
static int _strcompare (const char **, const char **);
/* Find greatest common prefix of two strings. */
static int
string_gcd (s1, s2)
char *s1, *s2;
string_gcd (char *s1, char *s2)
{
register int i;
@@ -63,13 +62,12 @@ string_gcd (s1, s2)
}
static char *
really_munge_braces (array, real_start, real_end, gcd_zero)
char **array;
int real_start, real_end, gcd_zero;
really_munge_braces (char **array, int real_start, int real_end, int gcd_zero)
{
int start, end, gcd;
char *result, *subterm, *x;
int result_size, flag, tlen;
size_t result_size;
int flag, tlen;
flag = 0;
@@ -150,8 +148,7 @@ really_munge_braces (array, real_start, real_end, gcd_zero)
}
static int
_strcompare (s1, s2)
char **s1, **s2;
_strcompare (const char **s1, const char **s2)
{
int result;
@@ -163,8 +160,7 @@ _strcompare (s1, s2)
}
static int
hack_braces_completion (names)
char **names;
hack_braces_completion (char **names)
{
register int i;
char *temp;
@@ -187,8 +183,7 @@ hack_braces_completion (names)
/* We handle quoting ourselves within hack_braces_completion, so we turn off
rl_filename_quoting_desired and rl_filename_quoting_function. */
int
bash_brace_completion (count, ignore)
int count, ignore;
bash_brace_completion (int count, int ignore)
{
rl_compignore_func_t *orig_ignore_func;
rl_compentry_func_t *orig_entry_func;