fix for fdflags loadable builtin; new strptime loadable builtin; enable -f doesn't fall back to current directory if using BASH_LOADABLES_PATH; new operator for rl_complete_internal that just dumps possible completions

This commit is contained in:
Chet Ramey
2023-11-24 12:39:17 -05:00
parent f491b93350
commit 55a224da44
35 changed files with 1613 additions and 1078 deletions
Vendored
+94 -2
View File
@@ -1,5 +1,5 @@
#! /bin/sh
# From configure.ac for Bash 5.3, version 5.057.
# From configure.ac for Bash 5.3, version 5.059.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for bash 5.3-devel.
#
@@ -15848,6 +15848,15 @@ else $as_nop
fi
printf "%s\n" "#define HAVE_DECL_PRINTF $ac_have_decl" >>confdefs.h
ac_fn_check_decl "$LINENO" "brk" "ac_cv_have_decl_brk" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_brk" = xyes
then :
ac_have_decl=1
else $as_nop
ac_have_decl=0
fi
printf "%s\n" "#define HAVE_DECL_BRK $ac_have_decl" >>confdefs.h
ac_fn_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_sbrk" = xyes
then :
@@ -15922,7 +15931,7 @@ else $as_nop
int
main (void)
{
long double r; char *foo, bar; r = strtold(foo, &bar);
long double r; char *foo, *bar; r = strtold(foo, &bar);
;
return 0;
@@ -20099,6 +20108,89 @@ printf "%s\n" "#define HAVE_SBRK 1" >>confdefs.h
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brk" >&5
printf %s "checking for brk... " >&6; }
if test ${ac_cv_func_brk+y}
then :
printf %s "(cached) " >&6
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <unistd.h>
int
main (void)
{
void *x = brk (0);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
ac_cv_func_brk=yes
else $as_nop
ac_cv_func_brk=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_brk" >&5
printf "%s\n" "$ac_cv_func_brk" >&6; }
if test X$ac_cv_func_brk = Xyes; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working brk" >&5
printf %s "checking for working brk... " >&6; }
if test ${bash_cv_func_brk+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test "$cross_compiling" = yes
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working brk if cross-compiling" >&5
printf "%s\n" "$as_me: WARNING: cannot check working brk if cross-compiling" >&2;}
bash_cv_func_brk=yes
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdlib.h>
#include <unistd.h>
int
main(int c, char **v)
{
void *x;
x = brk (0);
exit ((x == (void *)-1) ? 1 : 0);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
bash_cv_func_brk=yes
else $as_nop
bash_cv_func_brk=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_brk" >&5
printf "%s\n" "$bash_cv_func_brk" >&6; }
if test $bash_cv_func_brk = no; then
ac_cv_func_brk=no
fi
fi
if test $ac_cv_func_brk = yes; then
printf "%s\n" "#define HAVE_BRK 1" >>confdefs.h
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
printf %s "checking for the existence of strsignal... " >&6; }
if test ${bash_cv_have_strsignal+y}