From bb9a7e58e29c3061a4a38cf469457db34f42f20c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2021 23:10:15 +0000 Subject: import bash-5.1.8-2.el9 --- diff --git a/.bash.metadata b/.bash.metadata new file mode 100644 index 0000000..e8ba649 --- /dev/null +++ b/.bash.metadata @@ -0,0 +1 @@ +063019501ef1f30fad99d2b735a7ae2ce1d11423 SOURCES/bash-5.1.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0978b20 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/bash-5.1.tar.gz diff --git a/SOURCES/bash-2.03-paths.patch b/SOURCES/bash-2.03-paths.patch new file mode 100644 index 0000000..24ec5cc --- /dev/null +++ b/SOURCES/bash-2.03-paths.patch @@ -0,0 +1,11 @@ +--- bash-3.0/config-top.h.paths 2003-08-05 15:36:12.000000000 +0100 ++++ bash-3.0/config-top.h 2004-07-28 09:36:27.117205637 +0100 +@@ -66,7 +66,7 @@ + the Posix.2 confstr () function, or CS_PATH define are not present. */ + #ifndef STANDARD_UTILS_PATH + #define STANDARD_UTILS_PATH \ +- "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc" ++ "/bin:/usr/bin:/usr/sbin:/sbin" + #endif + + /* Default primary and secondary prompt strings. */ diff --git a/SOURCES/bash-2.03-profile.patch b/SOURCES/bash-2.03-profile.patch new file mode 100644 index 0000000..ba3344b --- /dev/null +++ b/SOURCES/bash-2.03-profile.patch @@ -0,0 +1,12 @@ +diff -up bash-3.2/config-top.h.profile bash-3.2/config-top.h +--- bash-3.2/config-top.h.profile 2008-07-17 13:35:39.000000000 +0200 ++++ bash-3.2/config-top.h 2008-07-17 13:42:18.000000000 +0200 +@@ -26,6 +26,8 @@ + what POSIX.2 specifies. */ + #define CONTINUE_AFTER_KILL_ERROR + ++#define NON_INTERACTIVE_LOGIN_SHELLS ++ + /* Define BREAK_COMPLAINS if you want the non-standard, but useful + error messages about `break' and `continue' out of context. */ + #define BREAK_COMPLAINS diff --git a/SOURCES/bash-2.05a-interpreter.patch b/SOURCES/bash-2.05a-interpreter.patch new file mode 100644 index 0000000..e8ca4ca --- /dev/null +++ b/SOURCES/bash-2.05a-interpreter.patch @@ -0,0 +1,215 @@ +diff --git a/config.h.in b/config.h.in +index ab316d4..11d1d68 100644 +--- a/config.h.in ++++ b/config.h.in +@@ -775,6 +775,9 @@ + /* Define if you have the pselect function. */ + #undef HAVE_PSELECT + ++/* Define if you have the pread function. */ ++#undef HAVE_PREAD ++ + /* Define if you have the putenv function. */ + #undef HAVE_PUTENV + +@@ -981,6 +984,9 @@ + /* Define if you have the header file. */ + #undef HAVE_DLFCN_H + ++/* Define if you have the header file. */ ++#undef HAVE_ELF_H ++ + /* Define if you have the header file. */ + #undef HAVE_GRP_H + +diff --git a/configure.ac b/configure.ac +index 2fe3e7d..f1b7f1b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -827,7 +827,7 @@ dnl checks for system calls + AC_CHECK_FUNCS(dup2 eaccess fcntl getdtablesize getentropy getgroups \ + gethostname getpagesize getpeername getrandom getrlimit \ + getrusage gettimeofday kill killpg lstat pselect readlink \ +- select setdtablesize setitimer tcgetpgrp uname ulimit waitpid) ++ select setdtablesize setitimer tcgetpgrp uname ulimit waitpid pread) + AC_REPLACE_FUNCS(rename) + + dnl checks for c library functions +diff --git a/execute_cmd.c b/execute_cmd.c +index d2a0dd7..d2555ad 100644 +--- a/execute_cmd.c ++++ b/execute_cmd.c +@@ -41,6 +41,10 @@ + # include + #endif + ++#ifdef HAVE_ELF_H ++# include ++#endif ++ + #include "posixtime.h" + + #if defined (HAVE_SYS_RESOURCE_H) && !defined (RLIMTYPE) +@@ -5832,6 +5836,14 @@ shell_execve (command, args, env) + { + /* The file has the execute bits set, but the kernel refuses to + run it for some reason. See why. */ ++#if defined (HAVE_HASH_BANG_EXEC) || defined (HAVE_ELF_H) ++ int fd = open (command, O_RDONLY); ++ ++ if (fd >= 0) ++ sample_len = read (fd, sample, sizeof (sample)); ++ else ++ sample_len = -1; ++#endif + #if defined (HAVE_HASH_BANG_EXEC) + READ_SAMPLE_BUF (command, sample, sample_len); + if (sample_len > 0) +@@ -5841,6 +5853,7 @@ shell_execve (command, args, env) + char *interp; + int ilen; + ++ close (fd); + interp = getinterp (sample, sample_len, (int *)NULL); + ilen = strlen (interp); + errno = i; +@@ -5856,7 +5869,138 @@ shell_execve (command, args, env) + return (EX_NOEXEC); + } + #endif +- errno = i; ++#if defined (HAVE_ELF_H) ++ if (i == ENOENT ++ && sample_len > EI_NIDENT ++ && memcmp (sample, ELFMAG, SELFMAG) == 0) ++ { ++ off_t offset = -1; ++ ++ /* It is an ELF file. Now determine whether it is dynamically ++ linked and if yes, get the offset of the interpreter ++ string. */ ++ if (sample[EI_CLASS] == ELFCLASS32 ++ && sample_len > sizeof (Elf32_Ehdr)) ++ { ++ Elf32_Ehdr ehdr; ++ Elf32_Phdr *phdr; ++ int nphdr; ++ ++ /* We have to copy the data since the sample buffer ++ might not be aligned correctly to be accessed as ++ an Elf32_Ehdr struct. */ ++ memcpy (&ehdr, sample, sizeof (Elf32_Ehdr)); ++ ++ nphdr = ehdr.e_phnum; ++ phdr = (Elf32_Phdr *) malloc (nphdr * ehdr.e_phentsize); ++ if (phdr != NULL) ++ { ++#ifdef HAVE_PREAD ++ sample_len = pread (fd, phdr, nphdr * ehdr.e_phentsize, ++ ehdr.e_phoff); ++#else ++ if (lseek (fd, ehdr.e_phoff, SEEK_SET) != -1) ++ sample_len = read (fd, phdr, ++ nphdr * ehdr.e_phentsize); ++ else ++ sample_len = -1; ++#endif ++ if (sample_len == nphdr * ehdr.e_phentsize) ++ while (nphdr-- > 0) ++ if (phdr[nphdr].p_type == PT_INTERP) ++ { ++ offset = phdr[nphdr].p_offset; ++ break; ++ } ++ free (phdr); ++ } ++ } ++ else if (sample[EI_CLASS] == ELFCLASS64 ++ && sample_len > sizeof (Elf64_Ehdr)) ++ { ++ Elf64_Ehdr ehdr; ++ Elf64_Phdr *phdr; ++ int nphdr; ++ ++ /* We have to copy the data since the sample buffer ++ might not be aligned correctly to be accessed as ++ an Elf64_Ehdr struct. */ ++ memcpy (&ehdr, sample, sizeof (Elf64_Ehdr)); ++ ++ nphdr = ehdr.e_phnum; ++ phdr = (Elf64_Phdr *) malloc (nphdr * ehdr.e_phentsize); ++ if (phdr != NULL) ++ { ++#ifdef HAVE_PREAD ++ sample_len = pread (fd, phdr, nphdr * ehdr.e_phentsize, ++ ehdr.e_phoff); ++#else ++ if (lseek (fd, ehdr.e_phoff, SEEK_SET) != -1) ++ sample_len = read (fd, phdr, ++ nphdr * ehdr.e_phentsize); ++ else ++ sample_len = -1; ++#endif ++ if (sample_len == nphdr * ehdr.e_phentsize) ++ while (nphdr-- > 0) ++ if (phdr[nphdr].p_type == PT_INTERP) ++ { ++ offset = phdr[nphdr].p_offset; ++ break; ++ } ++ free (phdr); ++ } ++ } ++ ++ if (offset != -1) ++ { ++ size_t maxlen = 0; ++ size_t actlen = 0; ++ char *interp = NULL; ++ ++ do ++ { ++ if (actlen == maxlen) ++ { ++ char *newinterp = realloc (interp, maxlen += 200); ++ if (newinterp == NULL) ++ { ++ actlen = 0; ++ break; ++ } ++ interp = newinterp; ++ ++#ifdef HAVE_PREAD ++ actlen = pread (fd, interp, maxlen, offset); ++#else ++ if (lseek (fd, offset, SEEK_SET) != -1) ++ actlen = read (fd, interp, maxlen); ++ else ++ actlen = -1; ++#endif ++ } ++ } ++ while (actlen > 0 && memchr (interp, '\0', actlen) == NULL); ++ ++ if (actlen > 0) ++ { ++ close (fd); ++ errno = i; ++ sys_error ("%s: %s: bad ELF interpreter", command, ++ interp); ++ free (interp); ++ return (EX_NOEXEC); ++ } ++ ++ free (interp); ++ } ++ } ++#endif ++#if defined (HAVE_HASH_BANG_EXEC) || defined (HAVE_ELF_H) ++ close (fd); ++#endif ++ ++ errno = i; + file_error (command); + } + return (last_command_exit_value); diff --git a/SOURCES/bash-2.05b-debuginfo.patch b/SOURCES/bash-2.05b-debuginfo.patch new file mode 100644 index 0000000..3278cab --- /dev/null +++ b/SOURCES/bash-2.05b-debuginfo.patch @@ -0,0 +1,10 @@ +--- bash-2.05b/builtins/Makefile.in.debuginfo 2003-03-25 17:25:21.000000000 +0000 ++++ bash-2.05b/builtins/Makefile.in 2003-03-25 17:25:49.000000000 +0000 +@@ -93,7 +93,6 @@ + $(RM) $@ + ./$(MKBUILTINS) $(DIRECTDEFINE) $< + $(CC) -c $(CCFLAGS) $*.c || ( $(RM) $*.c ; exit 1 ) +- $(RM) $*.c + + # How to make a .c file from a .def file. + .def.c: diff --git a/SOURCES/bash-2.05b-pgrp_sync.patch b/SOURCES/bash-2.05b-pgrp_sync.patch new file mode 100644 index 0000000..bd7ded6 --- /dev/null +++ b/SOURCES/bash-2.05b-pgrp_sync.patch @@ -0,0 +1,11 @@ +--- bash-2.05b/aclocal.m4.pgrp_sync 2002-06-25 14:45:43.000000000 +0100 ++++ bash-2.05b/aclocal.m4 2003-01-15 18:17:35.000000000 +0000 +@@ -1255,7 +1255,7 @@ + wait(&status); + exit(ok ? 0 : 5); + } +-], bash_cv_pgrp_pipe=no,bash_cv_pgrp_pipe=yes, ++], bash_cv_pgrp_pipe=yes,bash_cv_pgrp_pipe=yes, + [AC_MSG_WARN(cannot check pgrp synchronization if cross compiling -- defaulting to no) + bash_cv_pgrp_pipe=no]) + ]) diff --git a/SOURCES/bash-3.2-audit.patch b/SOURCES/bash-3.2-audit.patch new file mode 100644 index 0000000..48a1751 --- /dev/null +++ b/SOURCES/bash-3.2-audit.patch @@ -0,0 +1,96 @@ +diff -up bash-4.2/config.h.in.audit bash-4.2/config.h.in +--- bash-4.2/config.h.in.audit 2013-01-31 16:26:16.857698992 +0100 ++++ bash-4.2/config.h.in 2013-01-31 16:26:16.876699255 +0100 +@@ -1131,6 +1131,14 @@ + + /* End additions for lib/intl */ + ++ ++/* Additions for lib/readline */ ++ ++/* Define if you have and it defines AUDIT_USER_TTY */ ++#undef HAVE_DECL_AUDIT_USER_TTY ++ ++/* End additions for lib/readline */ ++ + #include "config-bot.h" + + #endif /* _CONFIG_H_ */ +diff -up bash-4.2/configure.in.audit bash-4.2/configure.in +--- bash-4.2/configure.in.audit 2013-01-31 16:26:16.858699005 +0100 ++++ bash-4.2/configure.ac 2013-01-31 16:26:16.877699269 +0100 +@@ -888,6 +888,8 @@ BASH_FUNC_DUP2_CLOEXEC_CHECK + BASH_SYS_PGRP_SYNC + BASH_SYS_SIGNAL_VINTAGE + ++AC_CHECK_DECLS([AUDIT_USER_TTY],,, [[#include ]]) ++ + dnl checking for the presence of certain library symbols + BASH_SYS_ERRLIST + BASH_SYS_SIGLIST +diff -up bash-4.2/lib/readline/readline.c.audit bash-4.2/lib/readline/readline.c +--- bash-4.2/lib/readline/readline.c.audit 2013-01-31 16:26:16.871699185 +0100 ++++ bash-4.2/lib/readline/readline.c 2013-01-31 17:24:23.902744860 +0100 +@@ -55,6 +55,12 @@ + extern int errno; + #endif /* !errno */ + ++#if defined (HAVE_DECL_AUDIT_USER_TTY) ++# include ++# include ++# include ++#endif ++ + /* System-specific feature definitions and include files. */ + #include "rldefs.h" + #include "rlmbutil.h" +@@ -301,7 +307,48 @@ rl_set_prompt (prompt) + rl_visible_prompt_length = rl_expand_prompt (rl_prompt); + return 0; + } +- ++ ++#if defined (HAVE_DECL_AUDIT_USER_TTY) ++/* Report STRING to the audit system. */ ++static void ++audit_tty (char *string) ++{ ++ struct sockaddr_nl addr; ++ struct msghdr msg; ++ struct nlmsghdr nlm; ++ struct iovec iov[2]; ++ size_t size; ++ int fd; ++ ++ size = strlen (string) + 1; ++ fd = socket (AF_NETLINK, SOCK_RAW, NETLINK_AUDIT); ++ if (fd < 0) ++ return; ++ nlm.nlmsg_len = NLMSG_LENGTH (size); ++ nlm.nlmsg_type = AUDIT_USER_TTY; ++ nlm.nlmsg_flags = NLM_F_REQUEST; ++ nlm.nlmsg_seq = 0; ++ nlm.nlmsg_pid = 0; ++ iov[0].iov_base = &nlm; ++ iov[0].iov_len = sizeof (nlm); ++ iov[1].iov_base = string; ++ iov[1].iov_len = size; ++ addr.nl_family = AF_NETLINK; ++ addr.nl_pad = 0; ++ addr.nl_pid = 0; ++ addr.nl_groups = 0; ++ msg.msg_name = &addr; ++ msg.msg_namelen = sizeof (addr); ++ msg.msg_iov = iov; ++ msg.msg_iovlen = 2; ++ msg.msg_control = NULL; ++ msg.msg_controllen = 0; ++ msg.msg_flags = 0; ++ (void)sendmsg (fd, &msg, 0); ++ close (fd); ++} ++#endif ++ + /* Read a line of input. Prompt with PROMPT. An empty PROMPT means + none. A return value of NULL means that EOF was encountered. */ + char * diff --git a/SOURCES/bash-3.2-ssh_source_bash.patch b/SOURCES/bash-3.2-ssh_source_bash.patch new file mode 100644 index 0000000..e675957 --- /dev/null +++ b/SOURCES/bash-3.2-ssh_source_bash.patch @@ -0,0 +1,13 @@ +diff --git a/config-top.h b/config-top.h +index e5cc147..f5e0a52 100644 +--- a/config-top.h ++++ b/config-top.h +@@ -106,7 +106,7 @@ + sshd and source the .bashrc if so (like the rshd behavior). This checks + for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment, + which can be fooled under certain not-uncommon circumstances. */ +-/* #define SSH_SOURCE_BASHRC */ ++#define SSH_SOURCE_BASHRC + + /* Define if you want the case-toggling operators (~[~]) and the + `capcase' variable attribute (declare -c). */ diff --git a/SOURCES/bash-4.0-nobits.patch b/SOURCES/bash-4.0-nobits.patch new file mode 100644 index 0000000..0e77fda --- /dev/null +++ b/SOURCES/bash-4.0-nobits.patch @@ -0,0 +1,154 @@ +diff -up bash-4.0/execute_cmd.c.nobits bash-4.0/execute_cmd.c +--- bash-4.0/execute_cmd.c.nobits 2009-08-11 11:53:38.000000000 +0200 ++++ bash-4.0/execute_cmd.c 2009-08-14 16:18:18.000000000 +0200 +@@ -4747,6 +4747,7 @@ shell_execve (command, args, env) + && memcmp (sample, ELFMAG, SELFMAG) == 0) + { + off_t offset = -1; ++ int dynamic_nobits = 0; + + /* It is an ELF file. Now determine whether it is dynamically + linked and if yes, get the offset of the interpreter +@@ -4756,13 +4757,61 @@ shell_execve (command, args, env) + { + Elf32_Ehdr ehdr; + Elf32_Phdr *phdr; +- int nphdr; ++ Elf32_Shdr *shdr; ++ int nphdr, nshdr; + + /* We have to copy the data since the sample buffer + might not be aligned correctly to be accessed as + an Elf32_Ehdr struct. */ + memcpy (&ehdr, sample, sizeof (Elf32_Ehdr)); + ++ nshdr = ehdr.e_shnum; ++ shdr = (Elf32_Shdr *) malloc (nshdr * ehdr.e_shentsize); ++ ++ if (shdr != NULL) ++ { ++#ifdef HAVE_PREAD ++ sample_len = pread (fd, shdr, nshdr * ehdr.e_shentsize, ++ ehdr.e_shoff); ++#else ++ if (lseek (fd, ehdr.e_shoff, SEEK_SET) != -1) ++ sample_len = read (fd, shdr, ++ nshdr * ehdr.e_shentsize); ++ else ++ sample_len = -1; ++#endif ++ if (sample_len == nshdr * ehdr.e_shentsize) ++ { ++ char *strings = (char *) malloc (shdr[ehdr.e_shstrndx].sh_size); ++ if (strings != NULL) ++ { ++#ifdef HAVE_PREAD ++ sample_len = pread (fd, strings, ++ shdr[ehdr.e_shstrndx].sh_size, ++ shdr[ehdr.e_shstrndx].sh_offset); ++#else ++ if (lseek (fd, shdr[ehdr.e_shstrndx].sh_offset, ++ SEEK_SET) != -1) ++ sample_len = read (fd, strings, ++ shdr[ehdr.e_shstrndx].sh_size); ++ else ++ sample_len = -1; ++#endif ++ if (sample_len == shdr[ehdr.e_shstrndx].sh_size) ++ while (nshdr-- > 0) ++ if (strcmp (strings + shdr[nshdr].sh_name, ++ ".interp") == 0 && ++ shdr[nshdr].sh_type == SHT_NOBITS) ++ { ++ dynamic_nobits++; ++ break; ++ } ++ free (strings); ++ } ++ } ++ free (shdr); ++ } ++ + nphdr = ehdr.e_phnum; + phdr = (Elf32_Phdr *) malloc (nphdr * ehdr.e_phentsize); + if (phdr != NULL) +@@ -4792,13 +4841,60 @@ shell_execve (command, args, env) + { + Elf64_Ehdr ehdr; + Elf64_Phdr *phdr; +- int nphdr; ++ Elf64_Shdr *shdr; ++ int nphdr, nshdr; + + /* We have to copy the data since the sample buffer + might not be aligned correctly to be accessed as + an Elf64_Ehdr struct. */ + memcpy (&ehdr, sample, sizeof (Elf64_Ehdr)); + ++ nshdr = ehdr.e_shnum; ++ shdr = (Elf64_Shdr *) malloc (nshdr * ehdr.e_shentsize); ++ if (shdr != NULL) ++ { ++#ifdef HAVE_PREAD ++ sample_len = pread (fd, shdr, nshdr * ehdr.e_shentsize, ++ ehdr.e_shoff); ++#else ++ if (lseek (fd, ehdr.e_shoff, SEEK_SET) != -1) ++ sample_len = read (fd, shdr, ++ nshdr * ehdr.e_shentsize); ++ else ++ sample_len = -1; ++#endif ++ if (sample_len == nshdr * ehdr.e_shentsize) ++ { ++ char *strings = (char *) malloc (shdr[ehdr.e_shstrndx].sh_size); ++ if (strings != NULL) ++ { ++#ifdef HAVE_PREAD ++ sample_len = pread (fd, strings, ++ shdr[ehdr.e_shstrndx].sh_size, ++ shdr[ehdr.e_shstrndx].sh_offset); ++#else ++ if (lseek (fd, shdr[ehdr.e_shstrndx].sh_offset, ++ SEEK_SET) != -1) ++ sample_len = read (fd, strings, ++ shdr[ehdr.e_shstrndx].sh_size); ++ else ++ sample_len = -1; ++#endif ++ if (sample_len == shdr[ehdr.e_shstrndx].sh_size) ++ while (nshdr-- > 0) ++ if (strcmp (strings + shdr[nshdr].sh_name, ++ ".interp") == 0 && ++ shdr[nshdr].sh_type == SHT_NOBITS) ++ { ++ dynamic_nobits++; ++ break; ++ } ++ free (strings); ++ } ++ } ++ free (shdr); ++ } ++ + nphdr = ehdr.e_phnum; + phdr = (Elf64_Phdr *) malloc (nphdr * ehdr.e_phentsize); + if (phdr != NULL) +@@ -4858,8 +4954,15 @@ shell_execve (command, args, env) + { + close (fd); + errno = i; +- sys_error ("%s: %s: bad ELF interpreter", command, +- interp); ++ if (dynamic_nobits > 0) ++ { ++ sys_error ("%s: bad ELF interpreter", command); ++ } ++ else ++ { ++ sys_error ("%s: %s: bad ELF interpreter", command, ++ interp); ++ } + free (interp); + return (EX_NOEXEC); + } diff --git a/SOURCES/bash-4.1-broken_pipe.patch b/SOURCES/bash-4.1-broken_pipe.patch new file mode 100644 index 0000000..e083374 --- /dev/null +++ b/SOURCES/bash-4.1-broken_pipe.patch @@ -0,0 +1,12 @@ +diff -up bash-4.1/config-top.h.broken_pipe bash-4.1/config-top.h +--- bash-4.1/config-top.h.broken_pipe 2011-01-06 18:01:30.000000000 +0100 ++++ bash-4.1/config-top.h 2011-01-06 18:02:14.000000000 +0100 +@@ -51,7 +51,7 @@ + /* Define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS if you don't want builtins + like `echo' and `printf' to report errors when output does not succeed + due to EPIPE. */ +-/* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */ ++#define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS + + /* The default value of the PATH variable. */ + #ifndef DEFAULT_PATH_VALUE diff --git a/SOURCES/bash-4.1-examples.patch b/SOURCES/bash-4.1-examples.patch new file mode 100644 index 0000000..19159e7 --- /dev/null +++ b/SOURCES/bash-4.1-examples.patch @@ -0,0 +1,24 @@ +diff -up bash-4.1/examples/loadables/Makefile.in.examples bash-4.1/examples/loadables/Makefile.in +--- bash-4.1/examples/loadables/Makefile.in.examples 2010-06-22 16:20:02.000000000 +0200 ++++ bash-4.1/examples/loadables/Makefile.in 2010-06-22 16:20:41.000000000 +0200 +@@ -43,7 +43,7 @@ host_os = @host_os@ + host_cpu = @host_cpu@ + host_vendor = @host_vendor@ + +-CFLAGS = @CFLAGS@ ++CFLAGS = -O2 -g + LOCAL_CFLAGS = @LOCAL_CFLAGS@ + DEFS = @DEFS@ + LOCAL_DEFS = @LOCAL_DEFS@ +diff -up bash-4.1/examples/loadables/perl/Makefile.in.examples bash-4.1/examples/loadables/perl/Makefile.in +--- bash-4.1/examples/loadables/perl/Makefile.in.examples 2010-06-22 16:20:46.000000000 +0200 ++++ bash-4.1/examples/loadables/perl/Makefile.in 2010-06-22 16:21:04.000000000 +0200 +@@ -42,7 +42,7 @@ SHELL = @MAKE_SHELL@ + + PERL5 = perl5 + +-CFLAGS = @CFLAGS@ ++CFLAGS = -O2 -g + + # + # These values are generated for configure by ${topdir}/support/shobj-conf. diff --git a/SOURCES/bash-4.2-coverity.patch b/SOURCES/bash-4.2-coverity.patch new file mode 100644 index 0000000..dc52e52 --- /dev/null +++ b/SOURCES/bash-4.2-coverity.patch @@ -0,0 +1,103 @@ +diff --git a/execute_cmd.c b/execute_cmd.c +index a988400..412128c 100644 +--- a/execute_cmd.c ++++ b/execute_cmd.c +@@ -5760,7 +5760,7 @@ shell_execve (command, args, env) + Elf32_Ehdr ehdr; + Elf32_Phdr *phdr; + Elf32_Shdr *shdr; +- int nphdr, nshdr; ++ Elf32_Half nphdr, nshdr; + + /* We have to copy the data since the sample buffer + might not be aligned correctly to be accessed as +@@ -5768,12 +5768,12 @@ shell_execve (command, args, env) + memcpy (&ehdr, sample, sizeof (Elf32_Ehdr)); + + nshdr = ehdr.e_shnum; +- shdr = (Elf32_Shdr *) malloc (nshdr * ehdr.e_shentsize); ++ shdr = (Elf32_Shdr *) malloc ((size_t)nshdr * (size_t)ehdr.e_shentsize); + + if (shdr != NULL) + { + #ifdef HAVE_PREAD +- sample_len = pread (fd, shdr, nshdr * ehdr.e_shentsize, ++ sample_len = pread (fd, shdr, (size_t)nshdr * (size_t)ehdr.e_shentsize, + ehdr.e_shoff); + #else + if (lseek (fd, ehdr.e_shoff, SEEK_SET) != -1) +@@ -5815,11 +5815,11 @@ shell_execve (command, args, env) + } + + nphdr = ehdr.e_phnum; +- phdr = (Elf32_Phdr *) malloc (nphdr * ehdr.e_phentsize); ++ phdr = (Elf32_Phdr *) malloc ((size_t)nphdr * (size_t)ehdr.e_phentsize); + if (phdr != NULL) + { + #ifdef HAVE_PREAD +- sample_len = pread (fd, phdr, nphdr * ehdr.e_phentsize, ++ sample_len = pread (fd, phdr, (size_t)nphdr * (size_t)ehdr.e_phentsize, + ehdr.e_phoff); + #else + if (lseek (fd, ehdr.e_phoff, SEEK_SET) != -1) +@@ -5844,7 +5844,7 @@ shell_execve (command, args, env) + Elf64_Ehdr ehdr; + Elf64_Phdr *phdr; + Elf64_Shdr *shdr; +- int nphdr, nshdr; ++ Elf32_Half nphdr, nshdr; + + /* We have to copy the data since the sample buffer + might not be aligned correctly to be accessed as +@@ -5852,11 +5852,11 @@ shell_execve (command, args, env) + memcpy (&ehdr, sample, sizeof (Elf64_Ehdr)); + + nshdr = ehdr.e_shnum; +- shdr = (Elf64_Shdr *) malloc (nshdr * ehdr.e_shentsize); ++ shdr = (Elf64_Shdr *) malloc ((size_t)nshdr * (size_t)ehdr.e_shentsize); + if (shdr != NULL) + { + #ifdef HAVE_PREAD +- sample_len = pread (fd, shdr, nshdr * ehdr.e_shentsize, ++ sample_len = pread (fd, shdr, (size_t)nshdr * (size_t)ehdr.e_shentsize, + ehdr.e_shoff); + #else + if (lseek (fd, ehdr.e_shoff, SEEK_SET) != -1) +@@ -5898,11 +5898,11 @@ shell_execve (command, args, env) + } + + nphdr = ehdr.e_phnum; +- phdr = (Elf64_Phdr *) malloc (nphdr * ehdr.e_phentsize); ++ phdr = (Elf64_Phdr *) malloc ((size_t)nphdr * (size_t)ehdr.e_phentsize); + if (phdr != NULL) + { + #ifdef HAVE_PREAD +- sample_len = pread (fd, phdr, nphdr * ehdr.e_phentsize, ++ sample_len = pread (fd, phdr, (size_t)nphdr * (size_t)ehdr.e_phentsize, + ehdr.e_phoff); + #else + if (lseek (fd, ehdr.e_phoff, SEEK_SET) != -1) +@@ -5924,8 +5924,8 @@ shell_execve (command, args, env) + + if (offset != -1) + { +- size_t maxlen = 0; +- size_t actlen = 0; ++ ssize_t maxlen = 0; ++ ssize_t actlen = 0; + char *interp = NULL; + + do +@@ -5974,7 +5974,8 @@ shell_execve (command, args, env) + } + #endif + #if defined (HAVE_HASH_BANG_EXEC) || defined (HAVE_ELF_H) +- close (fd); ++ if (fd >= 0) ++ close (fd); + #endif + + errno = i; +-- +2.17.2 + diff --git a/SOURCES/bash-4.2-manpage_trap.patch b/SOURCES/bash-4.2-manpage_trap.patch new file mode 100644 index 0000000..e81882f --- /dev/null +++ b/SOURCES/bash-4.2-manpage_trap.patch @@ -0,0 +1,12 @@ +diff -up bash-4.1/doc/bash.1.manpage_trap bash-4.1/doc/bash.1 +--- bash-4.1/doc/bash.1.manpage_trap 2012-08-28 10:06:00.561999092 +0200 ++++ bash-4.1/doc/bash.1 2012-08-28 10:06:24.225304505 +0200 +@@ -9251,7 +9251,7 @@ being inverted via + These are the same conditions obeyed by the \fBerrexit\fP (\fB\-e\fP) option. + .if t .sp 0.5 + .if n .sp 1 +-Signals ignored upon entry to the shell cannot be trapped or reset. ++Signals ignored upon entry to the shell cannot be trapped, reset or listed. + Trapped signals that are not being ignored are reset to their original + values in a subshell or subshell environment when one is created. + The return status is false if any diff --git a/SOURCES/bash-4.2-rc2-logout.patch b/SOURCES/bash-4.2-rc2-logout.patch new file mode 100644 index 0000000..f63c8b6 --- /dev/null +++ b/SOURCES/bash-4.2-rc2-logout.patch @@ -0,0 +1,41 @@ +diff --git a/config-top.h b/config-top.h +index 026d4a4..cb0e002 100644 +--- a/config-top.h ++++ b/config-top.h +@@ -92,7 +92,7 @@ + /* #define SYS_BASHRC "/etc/bash.bashrc" */ + + /* System-wide .bash_logout for login shells. */ +-/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */ ++#define SYS_BASH_LOGOUT "/etc/bash.bash_logout" + + /* Define this to make non-interactive shells begun with argv[0][0] == '-' + run the startup files when not in posix mode. */ +diff --git a/doc/bash.1 b/doc/bash.1 +index 04ce845..bfde55e 100644 +--- a/doc/bash.1 ++++ b/doc/bash.1 +@@ -335,8 +335,8 @@ option may be used when the shell is started to inhibit this behavior. + When an interactive login shell exits, + or a non-interactive login shell executes the \fBexit\fP builtin command, + .B bash +-reads and executes commands from the file \fI~/.bash_logout\fP, if it +-exists. ++reads and executes commands from the files \fI~/.bash_logout\fP ++and \fI/etc/bash.bash_logout\fP, if the files exists. + .PP + When an interactive shell that is not a login shell is started, + .B bash +@@ -10558,6 +10558,9 @@ The \fBbash\fP executable + .FN /etc/profile + The systemwide initialization file, executed for login shells + .TP ++.FN /etc/bash.bash_logout ++The systemwide login shell cleanup file, executed when a login shell exits ++.TP + .FN ~/.bash_profile + The personal initialization file, executed for login shells + .TP +-- +2.9.3 + diff --git a/SOURCES/bash-4.2-size_type.patch b/SOURCES/bash-4.2-size_type.patch new file mode 100644 index 0000000..ab56677 --- /dev/null +++ b/SOURCES/bash-4.2-size_type.patch @@ -0,0 +1,14 @@ +diff -up bash-4.2/variables.h.size_type bash-4.2/variables.h +--- bash-4.2/variables.h.size_type 2012-11-29 10:33:25.109036844 +0100 ++++ bash-4.2/variables.h 2012-11-29 10:46:12.718530162 +0100 +@@ -95,8 +95,8 @@ typedef struct variable { + + typedef struct _vlist { + SHELL_VAR **list; +- int list_size; /* allocated size */ +- int list_len; /* current number of entries */ ++ size_t list_size; /* allocated size */ ++ size_t list_len; /* current number of entries */ + } VARLIST; + + /* The various attributes that a given variable can have. */ diff --git a/SOURCES/bash-4.3-man-ulimit.patch b/SOURCES/bash-4.3-man-ulimit.patch new file mode 100644 index 0000000..0c3fa0a --- /dev/null +++ b/SOURCES/bash-4.3-man-ulimit.patch @@ -0,0 +1,15 @@ +diff --git a/doc/bash.1 b/doc/bash.1 +index 6e8aebb..e846e68 100644 +--- a/doc/bash.1 ++++ b/doc/bash.1 +@@ -10333,6 +10333,7 @@ and + which are in 512-byte increments. + The return status is 0 unless an invalid option or argument is supplied, + or an error occurs while setting a new limit. ++In POSIX Mode 512-byte blocks are used for the `-c' and `-f' options. + .RE + .TP + \fBumask\fP [\fB\-p\fP] [\fB\-S\fP] [\fImode\fP] +-- +2.9.3 + diff --git a/SOURCES/bash-4.3-memleak-lc_all.patch b/SOURCES/bash-4.3-memleak-lc_all.patch new file mode 100644 index 0000000..4de1753 --- /dev/null +++ b/SOURCES/bash-4.3-memleak-lc_all.patch @@ -0,0 +1,13 @@ +diff --git a/locale.c b/locale.c +index 17ccc58..a6c07a3 100644 +--- a/locale.c ++++ b/locale.c +@@ -78,8 +78,6 @@ set_default_locale () + { + #if defined (HAVE_SETLOCALE) + default_locale = setlocale (LC_ALL, ""); +- if (default_locale) +- default_locale = savestring (default_locale); + #else + default_locale = savestring ("C"); + #endif /* HAVE_SETLOCALE */ diff --git a/SOURCES/bash-4.3-noecho.patch b/SOURCES/bash-4.3-noecho.patch new file mode 100644 index 0000000..f20cd6f --- /dev/null +++ b/SOURCES/bash-4.3-noecho.patch @@ -0,0 +1,43 @@ +diff --git a/parse.y b/parse.y +index df1231d..2449fa8 100644 +--- a/parse.y ++++ b/parse.y +@@ -4482,6 +4482,8 @@ xparse_dolparen (base, string, indp, flags) + save_parser_state (&ps); + save_input_line_state (&ls); + orig_eof_token = shell_eof_token; ++ /* avoid echoing every substitution again */ ++ echo_input_at_read = 0; + #if defined (ALIAS) || defined (DPAREN_ARITHMETIC) + saved_pushed_strings = pushed_string_list; /* separate parsing context */ + pushed_string_list = (STRING_SAVER *)NULL; +diff --git a/subst.c b/subst.c +index 9ccbf33..8a9ee5c 100644 +--- a/subst.c ++++ b/subst.c +@@ -9453,6 +9453,7 @@ param_expand (string, sindex, quoted, expanded_something, + WORD_LIST *list, *l; + WORD_DESC *tdesc, *ret; + int tflag, nullarg; ++ int old_echo_input; + + /*itrace("param_expand: `%s' pflags = %d", string+*sindex, pflags);*/ + zindex = *sindex; +@@ -9843,6 +9844,9 @@ arithsub: + } + + comsub: ++ old_echo_input = echo_input_at_read; ++ /* avoid echoing every substitution again */ ++ echo_input_at_read = 0; + if (pflags & PF_NOCOMSUB) + /* we need zindex+1 because string[zindex] == RPAREN */ + temp1 = substring (string, *sindex, zindex+1); +@@ -9855,6 +9859,7 @@ comsub: + } + FREE (temp); + temp = temp1; ++ echo_input_at_read = old_echo_input; + break; + + /* Do POSIX.2d9-style arithmetic substitution. This will probably go diff --git a/SOURCES/bash-4.4-no-loadable-builtins.patch b/SOURCES/bash-4.4-no-loadable-builtins.patch new file mode 100644 index 0000000..b03459d --- /dev/null +++ b/SOURCES/bash-4.4-no-loadable-builtins.patch @@ -0,0 +1,15 @@ +diff --git a/Makefile.in b/Makefile.in +index a1f9483..24c646a 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -800,7 +800,6 @@ install: .made installdirs + infodir=$(infodir) htmldir=$(htmldir) DESTDIR=$(DESTDIR) $@ ) + -( cd $(DEFDIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ ) + -( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ ) +- -( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ ) + + install-strip: + $(MAKE) $(MFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \ +-- +2.9.3 + diff --git a/SOURCES/bash-5.1-patch-1.patch b/SOURCES/bash-5.1-patch-1.patch new file mode 100644 index 0000000..19c8c7f --- /dev/null +++ b/SOURCES/bash-5.1-patch-1.patch @@ -0,0 +1,50 @@ +diff --git a/Makefile.in b/Makefile.in +--- a/Makefile.in ++++ b/Makefile.in +@@ -1315,6 +1315,7 @@ bashline.o: trap.h flags.h assoc.h $(BASHINCDIR)/ocache.h + bashline.o: $(DEFSRC)/common.h $(GLOB_LIBSRC)/glob.h alias.h + bashline.o: pcomplete.h ${BASHINCDIR}/chartypes.h input.h + bashline.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h ++bashline.o: ${DEFDIR}/builtext.h + bracecomp.o: config.h bashansi.h ${BASHINCDIR}/ansi_stdlib.h + bracecomp.o: shell.h syntax.h config.h bashjmp.h ${BASHINCDIR}/posixjmp.h + bracecomp.o: command.h ${BASHINCDIR}/stdc.h error.h +@@ -1435,6 +1436,7 @@ builtins/evalstring.o: quit.h unwind_prot.h ${BASHINCDIR}/maxpath.h jobs.h built + builtins/evalstring.o: dispose_cmd.h make_cmd.h subst.h externs.h + builtins/evalstring.o: jobs.h builtins.h flags.h input.h execute_cmd.h + builtins/evalstring.o: bashhist.h $(DEFSRC)/common.h pathnames.h ++builtins/evalstring.o: ${DEFDIR}/builtext.h + builtins/getopt.o: config.h ${BASHINCDIR}/memalloc.h + builtins/getopt.o: shell.h syntax.h bashjmp.h command.h general.h xmalloc.h error.h + builtins/getopt.o: variables.h arrayfunc.h conftypes.h quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h +diff --git a/builtins/Makefile.in b/builtins/Makefile.in +--- a/builtins/Makefile.in ++++ b/builtins/Makefile.in +@@ -361,7 +361,7 @@ evalstring.o: $(topdir)/dispose_cmd.h $(topdir)/make_cmd.h $(topdir)/subst.h + evalstring.o: $(topdir)/externs.h $(topdir)/jobs.h $(topdir)/builtins.h + evalstring.o: $(topdir)/flags.h $(topdir)/input.h $(topdir)/execute_cmd.h + evalstring.o: $(topdir)/bashhist.h $(srcdir)/common.h +-evalstring.o: $(topdir)/trap.h $(topdir)/redir.h ../pathnames.h ++evalstring.o: $(topdir)/trap.h $(topdir)/redir.h ../pathnames.h ./builtext.h + #evalstring.o: $(topdir)/y.tab.h + getopt.o: ../config.h $(BASHINCDIR)/memalloc.h + getopt.o: $(topdir)/shell.h $(topdir)/syntax.h $(topdir)/bashjmp.h $(topdir)/command.h +diff --git a/patchlevel.h b/patchlevel.h +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -1,6 +1,6 @@ + /* patchlevel.h -- current bash patch level */ + +-/* Copyright (C) 2001-2016 Free Software Foundation, Inc. ++/* Copyright (C) 2001-2020 Free Software Foundation, Inc. + + This file is part of GNU Bash, the Bourne Again SHell. + +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 0 ++#define PATCHLEVEL 1 + + #endif /* _PATCHLEVEL_H_ */ diff --git a/SOURCES/bash-5.1-patch-2.patch b/SOURCES/bash-5.1-patch-2.patch new file mode 100644 index 0000000..488b1c2 --- /dev/null +++ b/SOURCES/bash-5.1-patch-2.patch @@ -0,0 +1,29 @@ +diff --git a/builtins/wait.def b/builtins/wait.def +--- a/builtins/wait.def ++++ b/builtins/wait.def +@@ -213,11 +213,11 @@ wait_builtin (list) + } + + status = wait_for_any_job (wflags, &pstat); +- if (status < 0) +- status = 127; +- + if (vname && status >= 0) + bind_var_to_int (vname, pstat.pid); ++ ++ if (status < 0) ++ status = 127; + if (list) + unset_waitlist (); + WAIT_RETURN (status); +diff --git a/patchlevel.h b/patchlevel.h +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 1 ++#define PATCHLEVEL 2 + + #endif /* _PATCHLEVEL_H_ */ diff --git a/SOURCES/bash-5.1-patch-3.patch b/SOURCES/bash-5.1-patch-3.patch new file mode 100644 index 0000000..317fc0d --- /dev/null +++ b/SOURCES/bash-5.1-patch-3.patch @@ -0,0 +1,27 @@ +diff --git a/patchlevel.h b/patchlevel.h +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 2 ++#define PATCHLEVEL 3 + + #endif /* _PATCHLEVEL_H_ */ +diff --git a/subst.c b/subst.c +--- a/subst.c ++++ b/subst.c +@@ -6356,8 +6356,10 @@ command_substitute (string, quoted, flags) + + #if defined (JOB_CONTROL) + old_pipeline_pgrp = pipeline_pgrp; +- /* Don't reset the pipeline pgrp if we're already a subshell in a pipeline. */ +- if ((subshell_environment & SUBSHELL_PIPE) == 0) ++ /* Don't reset the pipeline pgrp if we're already a subshell in a pipeline or ++ we've already forked to run a disk command (and are expanding redirections, ++ for example). */ ++ if ((subshell_environment & (SUBSHELL_FORK|SUBSHELL_PIPE)) == 0) + pipeline_pgrp = shell_pgrp; + cleanup_the_pipeline (); + #endif /* JOB_CONTROL */ diff --git a/SOURCES/bash-5.1-patch-4.patch b/SOURCES/bash-5.1-patch-4.patch new file mode 100644 index 0000000..08f8f9e --- /dev/null +++ b/SOURCES/bash-5.1-patch-4.patch @@ -0,0 +1,97 @@ +diff --git a/arrayfunc.c b/arrayfunc.c +--- a/arrayfunc.c ++++ b/arrayfunc.c +@@ -597,6 +597,27 @@ assign_assoc_from_kvlist (var, nlist, h, flags) + free (aval); + } + } ++ ++/* Return non-zero if L appears to be a key-value pair associative array ++ compound assignment. */ ++int ++kvpair_assignment_p (l) ++ WORD_LIST *l; ++{ ++ return (l && (l->word->flags & W_ASSIGNMENT) == 0 && l->word->word[0] != '['); /*]*/ ++} ++ ++char * ++expand_and_quote_kvpair_word (w) ++ char *w; ++{ ++ char *t, *r; ++ ++ t = w ? expand_assignment_string_to_string (w, 0) : 0; ++ r = sh_single_quote (t ? t : ""); ++ free (t); ++ return r; ++} + #endif + + /* Callers ensure that VAR is not NULL. Associative array assignments have not +@@ -640,7 +661,7 @@ assign_compound_array_list (var, nlist, flags) + last_ind = (a && (flags & ASS_APPEND)) ? array_max_index (a) + 1 : 0; + + #if ASSOC_KVPAIR_ASSIGNMENT +- if (assoc_p (var) && nlist && (nlist->word->flags & W_ASSIGNMENT) == 0 && nlist->word->word[0] != '[') /*]*/ ++ if (assoc_p (var) && kvpair_assignment_p (nlist)) + { + iflags = flags & ~ASS_APPEND; + assign_assoc_from_kvlist (var, nlist, nhash, iflags); +diff --git a/arrayfunc.h b/arrayfunc.h +--- a/arrayfunc.h ++++ b/arrayfunc.h +@@ -67,6 +67,9 @@ extern SHELL_VAR *assign_array_var_from_string PARAMS((SHELL_VAR *, char *, int) + extern char *expand_and_quote_assoc_word PARAMS((char *, int)); + extern void quote_compound_array_list PARAMS((WORD_LIST *, int)); + ++extern int kvpair_assignment_p PARAMS((WORD_LIST *)); ++extern char *expand_and_quote_kvpair_word PARAMS((char *)); ++ + extern int unbind_array_element PARAMS((SHELL_VAR *, char *, int)); + extern int skipsubscript PARAMS((const char *, int, int)); + +diff --git a/patchlevel.h b/patchlevel.h +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 3 ++#define PATCHLEVEL 4 + + #endif /* _PATCHLEVEL_H_ */ +diff --git a/subst.c b/subst.c +--- a/subst.c ++++ b/subst.c +@@ -11604,6 +11604,7 @@ expand_oneword (value, flags) + { + WORD_LIST *l, *nl; + char *t; ++ int kvpair; + + if (flags == 0) + { +@@ -11618,11 +11619,21 @@ expand_oneword (value, flags) + { + /* Associative array */ + l = parse_string_to_word_list (value, 1, "array assign"); ++#if ASSOC_KVPAIR_ASSIGNMENT ++ kvpair = kvpair_assignment_p (l); ++#endif ++ + /* For associative arrays, with their arbitrary subscripts, we have to + expand and quote in one step so we don't have to search for the + closing right bracket more than once. */ + for (nl = l; nl; nl = nl->next) + { ++#if ASSOC_KVPAIR_ASSIGNMENT ++ if (kvpair) ++ /* keys and values undergo the same set of expansions */ ++ t = expand_and_quote_kvpair_word (nl->word->word); ++ else ++#endif + if ((nl->word->flags & W_ASSIGNMENT) == 0) + t = sh_single_quote (nl->word->word ? nl->word->word : ""); + else diff --git a/SOURCES/bash-5.1-patch-5.patch b/SOURCES/bash-5.1-patch-5.patch new file mode 100644 index 0000000..51da516 --- /dev/null +++ b/SOURCES/bash-5.1-patch-5.patch @@ -0,0 +1,85 @@ +From cc978a670597afc3251baca3a7db553f36946c22 Mon Sep 17 00:00:00 2001 +From: Chet Ramey +Date: Tue, 4 May 2021 14:29:06 -0400 +Subject: [PATCH] Bash-5.1 patch 5: fix memory leaks in compound array + assignments + +--- + arrayfunc.c | 11 +++-------- + patchlevel.h | 2 +- + subst.c | 2 ++ + 3 files changed, 6 insertions(+), 9 deletions(-) + +diff --git a/arrayfunc.c b/arrayfunc.c +index 8231ba1e..9338dfc7 100644 +--- a/arrayfunc.c ++++ b/arrayfunc.c +@@ -564,12 +564,9 @@ assign_assoc_from_kvlist (var, nlist, h, flags) + { + WORD_LIST *list; + char *akey, *aval, *k, *v; +- int free_aval; + + for (list = nlist; list; list = list->next) + { +- free_aval = 0; +- + k = list->word->word; + v = list->next ? list->next->word->word : 0; + +@@ -577,24 +574,22 @@ assign_assoc_from_kvlist (var, nlist, h, flags) + list = list->next; + + akey = expand_assignment_string_to_string (k, 0); +- aval = expand_assignment_string_to_string (v, 0); +- + if (akey == 0 || *akey == 0) + { + err_badarraysub (k); + FREE (akey); + continue; + } ++ ++ aval = expand_assignment_string_to_string (v, 0); + if (aval == 0) + { + aval = (char *)xmalloc (1); + aval[0] = '\0'; /* like do_assignment_internal */ +- free_aval = 1; + } + + bind_assoc_var_internal (var, h, akey, aval, flags); +- if (free_aval) +- free (aval); ++ free (aval); + } + } + +diff --git a/patchlevel.h b/patchlevel.h +index e1429c24..c7f39aec 100644 +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 4 ++#define PATCHLEVEL 5 + + #endif /* _PATCHLEVEL_H_ */ +diff --git a/subst.c b/subst.c +index 6132316a..1d24188e 100644 +--- a/subst.c ++++ b/subst.c +@@ -11673,6 +11673,8 @@ expand_compound_assignment_word (tlist, flags) + free (value); + + value = string_list (l); ++ dispose_words (l); ++ + wlen = STRLEN (value); + + /* Now, let's rebuild the string */ +-- +2.29.2 + diff --git a/SOURCES/bash-5.1-patch-6.patch b/SOURCES/bash-5.1-patch-6.patch new file mode 100644 index 0000000..cfa603d --- /dev/null +++ b/SOURCES/bash-5.1-patch-6.patch @@ -0,0 +1,44 @@ +From f3cd936b81006df41a1c8509891dea1edeaef8e6 Mon Sep 17 00:00:00 2001 +From: Chet Ramey +Date: Tue, 4 May 2021 14:30:17 -0400 +Subject: [PATCH] Bash-5.1 patch 6: make sure child processes forked to execute + command substitutions are in the right process group + +--- + patchlevel.h | 2 +- + subst.c | 7 +++++++ + 2 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/patchlevel.h b/patchlevel.h +index c7f39aec..6257aeeb 100644 +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 5 ++#define PATCHLEVEL 6 + + #endif /* _PATCHLEVEL_H_ */ +diff --git a/subst.c b/subst.c +index 1d24188e..462752de 100644 +--- a/subst.c ++++ b/subst.c +@@ -6412,6 +6412,13 @@ command_substitute (string, quoted, flags) + /* The currently executing shell is not interactive. */ + interactive = 0; + ++#if defined (JOB_CONTROL) ++ /* Invariant: in child processes started to run command substitutions, ++ pipeline_pgrp == shell_pgrp. Other parts of the shell assume this. */ ++ if (pipeline_pgrp > 0 && pipeline_pgrp != shell_pgrp) ++ shell_pgrp = pipeline_pgrp; ++#endif ++ + set_sigint_handler (); /* XXX */ + + free_pushed_string_input (); +-- +2.29.2 + diff --git a/SOURCES/bash-5.1-patch-7.patch b/SOURCES/bash-5.1-patch-7.patch new file mode 100644 index 0000000..fecdae5 --- /dev/null +++ b/SOURCES/bash-5.1-patch-7.patch @@ -0,0 +1,71 @@ +From b72f88db852104cf49cfb4762eda6e8f4fd20a70 Mon Sep 17 00:00:00 2001 +From: Chet Ramey +Date: Tue, 4 May 2021 14:31:05 -0400 +Subject: [PATCH] Bash-5.1 patch 7: fix version comparisons in readline startup + files + +--- + lib/readline/bind.c | 15 ++++++++------- + patchlevel.h | 2 +- + 2 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/lib/readline/bind.c b/lib/readline/bind.c +index 87596dce..76103786 100644 +--- a/lib/readline/bind.c ++++ b/lib/readline/bind.c +@@ -1234,7 +1234,7 @@ parser_if (char *args) + #endif /* VI_MODE */ + else if (_rl_strnicmp (args, "version", 7) == 0) + { +- int rlversion, versionarg, op, previ, major, minor; ++ int rlversion, versionarg, op, previ, major, minor, opresult; + + _rl_parsing_conditionalized_out = 1; + rlversion = RL_VERSION_MAJOR*10 + RL_VERSION_MINOR; +@@ -1294,24 +1294,25 @@ parser_if (char *args) + switch (op) + { + case OP_EQ: +- _rl_parsing_conditionalized_out = rlversion == versionarg; ++ opresult = rlversion == versionarg; + break; + case OP_NE: +- _rl_parsing_conditionalized_out = rlversion != versionarg; ++ opresult = rlversion != versionarg; + break; + case OP_GT: +- _rl_parsing_conditionalized_out = rlversion > versionarg; ++ opresult = rlversion > versionarg; + break; + case OP_GE: +- _rl_parsing_conditionalized_out = rlversion >= versionarg; ++ opresult = rlversion >= versionarg; + break; + case OP_LT: +- _rl_parsing_conditionalized_out = rlversion < versionarg; ++ opresult = rlversion < versionarg; + break; + case OP_LE: +- _rl_parsing_conditionalized_out = rlversion <= versionarg; ++ opresult = rlversion <= versionarg; + break; + } ++ _rl_parsing_conditionalized_out = 1 - opresult; + } + /* Check to see if the first word in ARGS is the same as the + value stored in rl_readline_name. */ +diff --git a/patchlevel.h b/patchlevel.h +index 6257aeeb..c5ed66ab 100644 +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 6 ++#define PATCHLEVEL 7 + + #endif /* _PATCHLEVEL_H_ */ +-- +2.29.2 + diff --git a/SOURCES/bash-5.1-patch-8.patch b/SOURCES/bash-5.1-patch-8.patch new file mode 100644 index 0000000..700652b --- /dev/null +++ b/SOURCES/bash-5.1-patch-8.patch @@ -0,0 +1,49 @@ +From ce23728687ce9e584333367075c9deef413553fa Mon Sep 17 00:00:00 2001 +From: Chet Ramey +Date: Tue, 4 May 2021 14:31:53 -0400 +Subject: [PATCH] Bash-5.1 patch 8: clean up FIFOs created by redirections in + child processes + +--- + execute_cmd.c | 8 +++++++- + patchlevel.h | 2 +- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/execute_cmd.c b/execute_cmd.c +index d2a0dd71..90129e06 100644 +--- a/execute_cmd.c ++++ b/execute_cmd.c +@@ -5556,11 +5556,17 @@ execute_disk_command (words, redirects, command_line, pipe_in, pipe_out, + #if defined (PROCESS_SUBSTITUTION) + /* Try to remove named pipes that may have been created as the + result of redirections. */ +- unlink_fifo_list (); ++ unlink_all_fifos (); + #endif /* PROCESS_SUBSTITUTION */ + exit (EXECUTION_FAILURE); + } + ++#if defined (PROCESS_SUBSTITUTION) && !defined (HAVE_DEV_FD) ++ /* This should only contain FIFOs created as part of redirection ++ expansion. */ ++ unlink_all_fifos (); ++#endif ++ + if (async) + interactive = old_interactive; + +diff --git a/patchlevel.h b/patchlevel.h +index c5ed66ab..10fde2ee 100644 +--- a/patchlevel.h ++++ b/patchlevel.h +@@ -25,6 +25,6 @@ + regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh + looks for to find the patch level (for the sccs version string). */ + +-#define PATCHLEVEL 7 ++#define PATCHLEVEL 8 + + #endif /* _PATCHLEVEL_H_ */ +-- +2.29.2 + diff --git a/SOURCES/bash-infotags.patch b/SOURCES/bash-infotags.patch new file mode 100644 index 0000000..fe39609 --- /dev/null +++ b/SOURCES/bash-infotags.patch @@ -0,0 +1,26 @@ +diff --git a/doc/Makefile.in b/doc/Makefile.in +index 5f0756c..a5fa5a0 100644 +--- a/doc/Makefile.in ++++ b/doc/Makefile.in +@@ -74,7 +74,6 @@ TEXI2DVI = ${SUPPORT_SRCDIR}/texi2dvi + TEXI2HTML = ${SUPPORT_SRCDIR}/texi2html + MAN2HTML = ${BUILD_DIR}/support/man2html + HTMLPOST = ${srcdir}/htmlpost.sh +-INFOPOST = ${srcdir}/infopost.sh + QUIETPS = #set this to -q to shut up dvips + PAPERSIZE = letter # change to a4 for A4-size paper + PSDPI = 600 # could be 300 if you like +@@ -188,8 +187,8 @@ bashref.pdf: $(BASHREF_FILES) $(HSUSER) $(RLUSER) + bashref.html: $(BASHREF_FILES) $(HSUSER) $(RLUSER) + $(MAKEINFO) --html --no-split -I$(TEXINPUTDIR) $(srcdir)/bashref.texi + +-bash.info: bashref.info +- ${SHELL} ${INFOPOST} < $(srcdir)/bashref.info > $@ ; \ ++bash.info: $(BASHREF_FILES) $(HSUSER) $(RLUSER) ++ $(MAKEINFO) --no-split -I$(TEXINPUTDIR) $(srcdir)/bashref.texi -o $@ + + bash.txt: bash.1 + bash.ps: bash.1 +-- +2.9.3 + diff --git a/SOURCES/bash-requires.patch b/SOURCES/bash-requires.patch new file mode 100644 index 0000000..86d0792 --- /dev/null +++ b/SOURCES/bash-requires.patch @@ -0,0 +1,312 @@ +diff --git a/builtins.h b/builtins.h +index dac95fd..5b7e811 100644 +--- a/builtins.h ++++ b/builtins.h +@@ -45,6 +45,7 @@ + #define ASSIGNMENT_BUILTIN 0x10 /* This builtin takes assignment statements. */ + #define POSIX_BUILTIN 0x20 /* This builtins is special in the Posix command search order. */ + #define LOCALVAR_BUILTIN 0x40 /* This builtin creates local variables */ ++#define REQUIRES_BUILTIN 0x80 /* This builtin requires other files. */ + + #define BASE_INDENT 4 + +diff --git a/builtins/mkbuiltins.c b/builtins/mkbuiltins.c +index e243021..0a7a0e5 100644 +--- a/builtins/mkbuiltins.c ++++ b/builtins/mkbuiltins.c +@@ -69,10 +69,15 @@ extern char *strcpy (); + #define whitespace(c) (((c) == ' ') || ((c) == '\t')) + + /* Flag values that builtins can have. */ ++/* These flags are for the C code generator, ++ the C which is produced (./builtin.c) ++ includes the flags definitions found ++ in ../builtins.h */ + #define BUILTIN_FLAG_SPECIAL 0x01 + #define BUILTIN_FLAG_ASSIGNMENT 0x02 + #define BUILTIN_FLAG_LOCALVAR 0x04 + #define BUILTIN_FLAG_POSIX_BUILTIN 0x08 ++#define BUILTIN_FLAG_REQUIRES 0x10 + + #define BASE_INDENT 4 + +@@ -173,11 +178,19 @@ char *posix_builtins[] = + (char *)NULL + }; + ++/* The builtin commands that cause requirements on other files. */ ++static char *requires_builtins[] = ++{ ++ ".", "command", "exec", "source", "inlib", ++ (char *)NULL ++}; ++ + /* Forward declarations. */ + static int is_special_builtin (); + static int is_assignment_builtin (); + static int is_localvar_builtin (); + static int is_posix_builtin (); ++static int is_requires_builtin (); + + #if !defined (HAVE_RENAME) + static int rename (); +@@ -831,6 +844,8 @@ builtin_handler (self, defs, arg) + new->flags |= BUILTIN_FLAG_LOCALVAR; + if (is_posix_builtin (name)) + new->flags |= BUILTIN_FLAG_POSIX_BUILTIN; ++ if (is_requires_builtin (name)) ++ new->flags |= BUILTIN_FLAG_REQUIRES; + + array_add ((char *)new, defs->builtins); + building_builtin = 1; +@@ -1250,12 +1265,13 @@ write_builtins (defs, structfile, externfile) + else + fprintf (structfile, "(sh_builtin_func_t *)0x0, "); + +- fprintf (structfile, "%s%s%s%s%s, %s_doc,\n", ++ fprintf (structfile, "%s%s%s%s%s%s, %s_doc,\n", + "BUILTIN_ENABLED | STATIC_BUILTIN", + (builtin->flags & BUILTIN_FLAG_SPECIAL) ? " | SPECIAL_BUILTIN" : "", + (builtin->flags & BUILTIN_FLAG_ASSIGNMENT) ? " | ASSIGNMENT_BUILTIN" : "", + (builtin->flags & BUILTIN_FLAG_LOCALVAR) ? " | LOCALVAR_BUILTIN" : "", + (builtin->flags & BUILTIN_FLAG_POSIX_BUILTIN) ? " | POSIX_BUILTIN" : "", ++ (builtin->flags & BUILTIN_FLAG_REQUIRES) ? " | REQUIRES_BUILTIN" : "", + document_name (builtin)); + + /* Don't translate short document summaries that are identical +@@ -1645,6 +1661,13 @@ is_posix_builtin (name) + return (_find_in_table (name, posix_builtins)); + } + ++static int ++is_requires_builtin (name) ++ char *name; ++{ ++ return (_find_in_table (name, requires_builtins)); ++} ++ + #if !defined (HAVE_RENAME) + static int + rename (from, to) +diff --git a/doc/bash.1 b/doc/bash.1 +index 5af7d42..7539368 100644 +--- a/doc/bash.1 ++++ b/doc/bash.1 +@@ -239,6 +239,14 @@ The shell becomes restricted (see + .B "RESTRICTED SHELL" + below). + .TP ++.B \-\-rpm-requires ++Produce the list of files that are required for the ++shell script to run. This implies '-n' and is subject ++to the same limitations as compile time error checking checking; ++Command substitutions, Conditional expressions and ++.BR eval ++builtin are not parsed so some dependencies may be missed. ++.TP + .B \-\-verbose + Equivalent to \fB\-v\fP. + .TP +diff --git a/doc/bashref.texi b/doc/bashref.texi +index 9e23f58..d02151e 100644 +--- a/doc/bashref.texi ++++ b/doc/bashref.texi +@@ -6554,6 +6554,13 @@ standard. @xref{Bash POSIX Mode}, for a description of the Bash + @item --restricted + Make the shell a restricted shell (@pxref{The Restricted Shell}). + ++@item --rpm-requires ++Produce the list of files that are required for the ++shell script to run. This implies '-n' and is subject ++to the same limitations as compile time error checking checking; ++Command substitutions, Conditional expressions and @command{eval} ++are not parsed so some dependencies may be missed. ++ + @item --verbose + Equivalent to @option{-v}. Print shell input lines as they're read. + +diff --git a/eval.c b/eval.c +index 1d967da..f197033 100644 +--- a/eval.c ++++ b/eval.c +@@ -137,7 +137,8 @@ reader_loop () + + if (read_command () == 0) + { +- if (interactive_shell == 0 && read_but_dont_execute) ++ ++ if (interactive_shell == 0 && (read_but_dont_execute && !rpm_requires)) + { + set_exit_status (EXECUTION_SUCCESS); + dispose_command (global_command); +diff --git a/execute_cmd.c b/execute_cmd.c +index d2555ad..397e283 100644 +--- a/execute_cmd.c ++++ b/execute_cmd.c +@@ -543,6 +543,8 @@ async_redirect_stdin () + + #define DESCRIBE_PID(pid) do { if (interactive) describe_pid (pid); } while (0) + ++extern int rpm_requires; ++ + /* Execute the command passed in COMMAND, perhaps doing it asynchronously. + COMMAND is exactly what read_command () places into GLOBAL_COMMAND. + ASYNCHRONOUS, if non-zero, says to do this command in the background. +@@ -574,7 +576,13 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out, + + if (breaking || continuing) + return (last_command_exit_value); +- if (command == 0 || read_but_dont_execute) ++ if (command == 0 || (read_but_dont_execute && !rpm_requires)) ++ return (EXECUTION_SUCCESS); ++ if (rpm_requires && command->type == cm_function_def) ++ return last_command_exit_value = ++ execute_intern_function (command->value.Function_def->name, ++ command->value.Function_def); ++ if (read_but_dont_execute) + return (EXECUTION_SUCCESS); + + QUIT; +@@ -2836,7 +2844,7 @@ execute_for_command (for_command) + save_line_number = line_number; + if (check_identifier (for_command->name, 1) == 0) + { +- if (posixly_correct && interactive_shell == 0) ++ if (posixly_correct && interactive_shell == 0 && rpm_requires == 0) + { + last_command_exit_value = EX_BADUSAGE; + jump_to_top_level (ERREXIT); +diff --git a/execute_cmd.h b/execute_cmd.h +index 465030a..9c7fd1c 100644 +--- a/execute_cmd.h ++++ b/execute_cmd.h +@@ -22,6 +22,9 @@ + #define _EXECUTE_CMD_H_ + + #include "stdc.h" ++#include "variables.h" ++#include "command.h" ++ + + #if defined (ARRAY_VARS) + struct func_array_state +diff --git a/make_cmd.c b/make_cmd.c +index 2d7ac96..ac53526 100644 +--- a/make_cmd.c ++++ b/make_cmd.c +@@ -35,6 +35,8 @@ + #include "bashintl.h" + + #include "shell.h" ++#include "builtins.h" ++#include "builtins/common.h" + #include "execute_cmd.h" + #include "parser.h" + #include "flags.h" +@@ -828,6 +830,30 @@ make_coproc_command (name, command) + return (make_command (cm_coproc, (SIMPLE_COM *)temp)); + } + ++static void ++output_requirement (deptype, filename) ++const char *deptype; ++char *filename; ++{ ++ static char *alphabet_set = "abcdefghijklmnopqrstuvwxyz" ++ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; ++ ++ if (strchr(filename, '$') || (filename[0] != '/' && strchr(filename, '/'))) ++ return; ++ ++ /* ++ if the executable is called via variable substitution we can ++ not dermine what it is at compile time. ++ ++ if the executable consists only of characters not in the ++ alphabet we do not consider it a dependency just an artifact ++ of shell parsing (ex "exec < ${infile}"). ++ */ ++ ++ if (strpbrk(filename, alphabet_set)) ++ printf ("%s(%s)\n", deptype, filename); ++} ++ + /* Reverse the word list and redirection list in the simple command + has just been parsed. It seems simpler to do this here the one + time then by any other method that I can think of. */ +@@ -845,6 +871,28 @@ clean_simple_command (command) + REVERSE_LIST (command->value.Simple->redirects, REDIRECT *); + } + ++ if (rpm_requires && command->value.Simple->words) ++ { ++ char *cmd0; ++ char *cmd1; ++ struct builtin *b; ++ ++ cmd0 = command->value.Simple->words->word->word; ++ b = builtin_address_internal (cmd0, 0); ++ cmd1 = 0; ++ if (command->value.Simple->words->next) ++ cmd1 = command->value.Simple->words->next->word->word; ++ ++ if (b) { ++ if ( (b->flags & REQUIRES_BUILTIN) && cmd1) ++ output_requirement ("executable", cmd1); ++ } else { ++ if (!assignment(cmd0, 0)) ++ output_requirement (find_function(cmd0) ? "function" : "executable", cmd0); ++ } ++ } /*rpm_requires*/ ++ ++ + parser_state &= ~PST_REDIRLIST; + return (command); + } +diff --git a/shell.c b/shell.c +index ce8087f..7dcd000 100644 +--- a/shell.c ++++ b/shell.c +@@ -194,6 +194,9 @@ int have_devfd = 0; + /* The name of the .(shell)rc file. */ + static char *bashrc_file = DEFAULT_BASHRC; + ++/* Non-zero if we are finding the scripts requirements. */ ++int rpm_requires; ++ + /* Non-zero means to act more like the Bourne shell on startup. */ + static int act_like_sh; + +@@ -260,6 +263,7 @@ static const struct { + { "protected", Int, &protected_mode, (char **)0x0 }, + #endif + { "rcfile", Charp, (int *)0x0, &bashrc_file }, ++ { "rpm-requires", Int, &rpm_requires, (char **)0x0 }, + #if defined (RESTRICTED_SHELL) + { "restricted", Int, &restricted, (char **)0x0 }, + #endif +@@ -502,6 +506,12 @@ main (argc, argv, env) + if (dump_translatable_strings) + read_but_dont_execute = 1; + ++ if (rpm_requires) ++ { ++ read_but_dont_execute = 1; ++ initialize_shell_builtins (); ++ } ++ + if (running_setuid && privileged_mode == 0) + disable_priv_mode (); + +diff --git a/shell.h b/shell.h +index 8b41792..29b0efb 100644 +--- a/shell.h ++++ b/shell.h +@@ -99,6 +99,7 @@ extern int interactive, interactive_shell; + extern int startup_state; + extern int reading_shell_script; + extern int shell_initialized; ++extern int rpm_requires; + extern int bash_argv_initialized; + extern int subshell_environment; + extern int current_command_number; diff --git a/SOURCES/bash-setlocale.patch b/SOURCES/bash-setlocale.patch new file mode 100644 index 0000000..f068ec7 --- /dev/null +++ b/SOURCES/bash-setlocale.patch @@ -0,0 +1,10 @@ +--- bash-3.0/builtins/setattr.def.setlocale 2005-08-08 12:22:42.000000000 +0100 ++++ bash-3.0/builtins/setattr.def 2005-08-08 12:25:16.000000000 +0100 +@@ -423,4 +423,7 @@ + + if (var && (exported_p (var) || (attribute & att_exported))) + array_needs_making++; /* XXX */ ++ ++ if (var) ++ stupidly_hack_special_variables (name); + } diff --git a/SOURCES/bash-tty-tests.patch b/SOURCES/bash-tty-tests.patch new file mode 100644 index 0000000..9311746 --- /dev/null +++ b/SOURCES/bash-tty-tests.patch @@ -0,0 +1,58 @@ +diff --git a/tests/exec.right b/tests/exec.right +index 0a249dd..fe8a127 100644 +--- a/tests/exec.right ++++ b/tests/exec.right +@@ -51,7 +51,6 @@ this is ohio-state + 0 + 1 + testb +-expand_aliases on + 1 + 1 + 1 +diff --git a/tests/execscript b/tests/execscript +index 2809676..1216828 100644 +--- a/tests/execscript ++++ b/tests/execscript +@@ -108,8 +108,6 @@ ${THIS_SH} ./exec6.sub + # checks for properly deciding what constitutes an executable file + ${THIS_SH} ./exec7.sub + +-${THIS_SH} -i ${PWD}/exec8.sub +- + ${THIS_SH} ./exec9.sub + + ${THIS_SH} ./exec10.sub +diff --git a/tests/read.right b/tests/read.right +index 1144083..09cd422 100644 +--- a/tests/read.right ++++ b/tests/read.right +@@ -33,14 +33,6 @@ a = abcdefg + a = xyz + a = -xyz 123- + a = abc +-timeout 1: ok +- +-timeout 2: ok +- +-./read2.sub: line 36: read: -3: invalid timeout specification +-1 +- +-abcde + ./read3.sub: line 17: read: -1: invalid number + abc + ab +diff --git a/tests/read.tests b/tests/read.tests +index 7384f05..43fcf8d 100644 +--- a/tests/read.tests ++++ b/tests/read.tests +@@ -95,9 +95,6 @@ echo " foo" | { IFS=$':' ; read line; recho "$line"; } + # test read -d delim behavior + ${THIS_SH} ./read1.sub + +-# test read -t timeout behavior +-${THIS_SH} ./read2.sub +- + # test read -n nchars behavior + ${THIS_SH} ./read3.sub + diff --git a/SOURCES/dot-bash_logout b/SOURCES/dot-bash_logout new file mode 100644 index 0000000..af7c6fd --- /dev/null +++ b/SOURCES/dot-bash_logout @@ -0,0 +1,2 @@ +# ~/.bash_logout + diff --git a/SOURCES/dot-bash_profile b/SOURCES/dot-bash_profile new file mode 100644 index 0000000..55136b9 --- /dev/null +++ b/SOURCES/dot-bash_profile @@ -0,0 +1,8 @@ +# .bash_profile + +# Get the aliases and functions +if [ -f ~/.bashrc ]; then + . ~/.bashrc +fi + +# User specific environment and startup programs diff --git a/SOURCES/dot-bashrc b/SOURCES/dot-bashrc new file mode 100644 index 0000000..ad4581e --- /dev/null +++ b/SOURCES/dot-bashrc @@ -0,0 +1,27 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# User specific environment +if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] +then + PATH="$HOME/.local/bin:$HOME/bin:$PATH" +fi +export PATH + +# Uncomment the following line if you don't like systemctl's auto-paging feature: +# export SYSTEMD_PAGER= + +# User specific aliases and functions +if [ -d ~/.bashrc.d ]; then + for rc in ~/.bashrc.d/*; do + if [ -f "$rc" ]; then + . "$rc" + fi + done +fi + +unset rc diff --git a/SPECS/bash.spec b/SPECS/bash.spec new file mode 100644 index 0000000..2c01dec --- /dev/null +++ b/SPECS/bash.spec @@ -0,0 +1,1718 @@ +#% define beta_tag rc2 +%define patchleveltag .8 +%define baseversion 5.1 +%bcond_without tests + +Version: %{baseversion}%{patchleveltag} +Name: bash +Summary: The GNU Bourne Again shell +Release: 2%{?dist} +License: GPLv3+ +Url: https://www.gnu.org/software/bash +Source0: https://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz + +# For now there isn't any doc +#Source2: ftp://ftp.gnu.org/gnu/bash/bash-doc-%%{version}.tar.gz + +Source1: dot-bashrc +Source2: dot-bash_profile +Source3: dot-bash_logout + +# Official upstream patches +# Patches are converted to apply with '-p1' +%{lua:for i=1,8 do print(string.format("Patch%u: bash-5.1-patch-%u.patch\n", i, i)) end} + +# Other patches +# We don't want to add '/etc:/usr/etc' in standard utils path. +Patch101: bash-2.03-paths.patch +# Non-interactive shells beginning with argv[0][0] == '-' should run the startup files when not in posix mode. +Patch102: bash-2.03-profile.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=60870 +Patch103: bash-2.05a-interpreter.patch +# Generate info for debuginfo files. +Patch104: bash-2.05b-debuginfo.patch +# Pid passed to setpgrp() can not be pid of a zombie process. +Patch105: bash-2.05b-pgrp_sync.patch +# Enable audit logs +Patch106: bash-3.2-audit.patch +# Source bashrc file when bash is run under ssh. +Patch107: bash-3.2-ssh_source_bash.patch +# Use makeinfo to generate .texi file +Patch108: bash-infotags.patch +# Try to pick up latest `--rpm-requires` patch from http://git.altlinux.org/gears/b/bash4.git +Patch109: bash-requires.patch +Patch110: bash-setlocale.patch +# Disable tty tests while doing bash builds +Patch111: bash-tty-tests.patch + +# 484809, check if interp section is NOBITS +Patch116: bash-4.0-nobits.patch + +# Do the same CFLAGS in generated Makefile in examples +Patch117: bash-4.1-examples.patch + +# Builtins like echo and printf won't report errors +# when output does not succeed due to EPIPE +Patch118: bash-4.1-broken_pipe.patch + +# # Enable system-wide .bash_logout for login shells +Patch119: bash-4.2-rc2-logout.patch + +# Static analyzis shows some issues in bash-2.05a-interpreter.patch +Patch120: bash-4.2-coverity.patch + +# 799958, updated info about trap +# This patch should be upstreamed. +Patch122: bash-4.2-manpage_trap.patch + +# https://www.securecoding.cert.org/confluence/display/seccode/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow +# This patch should be upstreamed. +Patch123: bash-4.2-size_type.patch + +# 1112710 - mention ulimit -c and -f POSIX block size +# This patch should be upstreamed. +Patch124: bash-4.3-man-ulimit.patch + +# 1102815 - fix double echoes in vi visual mode +Patch125: bash-4.3-noecho.patch + +#1241533,1224855 - bash leaks memory when LC_ALL set +Patch126: bash-4.3-memleak-lc_all.patch + +# bash-4.4 builds loadable builtin examples by default +# this patch disables it +Patch127: bash-4.4-no-loadable-builtins.patch + +BuildRequires: gcc +BuildRequires: texinfo bison +BuildRequires: ncurses-devel +BuildRequires: autoconf, gettext +# Required for bash tests +BuildRequires: glibc-all-langpacks +BuildRequires: make +Requires: filesystem >= 3 +Provides: /bin/sh +Provides: /bin/bash + +%description +The GNU Bourne Again shell (Bash) is a shell or command language +interpreter that is compatible with the Bourne shell (sh). Bash +incorporates useful features from the Korn shell (ksh) and the C shell +(csh). Most sh scripts can be run by bash without modification. + +%package devel +Summary: Development headers for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains development headers for %{name}. + +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains documentation files for %{name}. + +%prep +%autosetup -n %{name}-%{baseversion} -p1 + +echo %{version} > _distribution +echo %{release} > _patchlevel + +# force refreshing the generated files +rm y.tab.* + +%build +autoconf +%configure --with-bash-malloc=no --with-afs + +# Recycles pids is neccessary. When bash's last fork's pid was X +# and new fork's pid is also X, bash has to wait for this same pid. +# Without Recycles pids bash will not wait. +MFLAGS="CPPFLAGS=-D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' `getconf LFS_CFLAGS`" + +# work around missing deps in Makefiles +make "$MFLAGS" version.h +make "$MFLAGS" %{?_smp_mflags} -C builtins +make "$MFLAGS" %{?_smp_mflags} + +%install +if [ -e autoconf ]; then + # Yuck. We're using autoconf 2.1x. + export PATH=.:$PATH +fi + +# Fix bug #83776 +sed -i -e 's,bashref\.info,bash.info,' doc/bashref.info + +%make_install install-headers + +mkdir -p %{buildroot}/%{_sysconfdir} + +# make manpages for bash builtins as per suggestion in DOC/README +pushd doc +sed -e ' +/^\.SH NAME/, /\\- bash built-in commands, see \\fBbash\\fR(1)$/{ +/^\.SH NAME/d +s/^bash, // +s/\\- bash built-in commands, see \\fBbash\\fR(1)$// +s/,//g +b +} +d +' builtins.1 > man.pages +for i in echo pwd test kill; do + sed -i -e "s,$i,,g" man.pages + sed -i -e "s, , ,g" man.pages +done + +install -p -m 644 builtins.1 %{buildroot}%{_mandir}/man1/builtins.1 + +for i in `cat man.pages` ; do + echo .so man1/builtins.1 > %{buildroot}%{_mandir}/man1/$i.1 + chmod 0644 %{buildroot}%{_mandir}/man1/$i.1 +done +popd + +# Link bash man page to sh so that man sh works. +ln -s bash.1 %{buildroot}%{_mandir}/man1/sh.1 + +# Not for printf, true and false (conflict with coreutils) +rm -f %{buildroot}/%{_mandir}/man1/printf.1 +rm -f %{buildroot}/%{_mandir}/man1/true.1 +rm -f %{buildroot}/%{_mandir}/man1/false.1 + +ln -sf bash %{buildroot}%{_bindir}/sh +rm -f %{buildroot}%{_infodir}/dir +mkdir -p %{buildroot}%{_sysconfdir}/skel +install -p -m644 %SOURCE1 %{buildroot}/etc/skel/.bashrc +install -p -m644 %SOURCE2 %{buildroot}/etc/skel/.bash_profile +install -p -m644 %SOURCE3 %{buildroot}/etc/skel/.bash_logout +LONG_BIT=$(getconf LONG_BIT) +mv %{buildroot}%{_bindir}/bashbug \ + %{buildroot}%{_bindir}/bashbug-"${LONG_BIT}" +ln -s bashbug-"${LONG_BIT}" %{buildroot}%{_bindir}/bashbug +ln -s bashbug.1 %{buildroot}/%{_mandir}/man1/bashbug-"$LONG_BIT".1 + +# Fix missing sh-bangs in example scripts (bug #225609). +for script in \ + examples/scripts/shprompt +# I don't know why these are gone in 4.3 + #examples/scripts/krand.bash \ + #examples/scripts/bcsh.sh \ + #examples/scripts/precedence \ +do + cp "$script" "$script"-orig + echo '#!/bin/bash' > "$script" + cat "$script"-orig >> "$script" + rm -f "$script"-orig +done + +# bug #820192, need to add execable alternatives for regular built-ins +for ea in alias bg cd command fc fg getopts hash jobs read type ulimit umask unalias wait +do + cat < "%{buildroot}"/%{_bindir}/"$ea" +#!/bin/sh +builtin $ea "\$@" +EOF +chmod +x "%{buildroot}"/%{_bindir}/"$ea" +done + +%find_lang %{name} + +# copy doc to /usr/share/doc +cat /dev/null > %{name}-doc.files +mkdir -p %{buildroot}/%{_pkgdocdir}/doc +# loadables aren't buildable +rm -rf examples/loadables +for file in CHANGES COMPAT NEWS NOTES POSIX RBASH README examples +do + cp -rp "$file" %{buildroot}%{_pkgdocdir}/"$file" + echo "%%doc %{_pkgdocdir}/$file" >> %{name}-doc.files +done +echo "%%doc %{_pkgdocdir}/doc" >> %{name}-doc.files + + + +%if %{with tests} +%check +make check +%endif + +# post is in lua so that we can run it without any external deps. Helps +# for bootstrapping a new install. +# Jesse Keating 2009-01-29 (code from Ignacio Vazquez-Abrams) +# Roman Rakus 2011-11-07 (code from Sergey Romanov) #740611 +%post -p +nl = '\n' +sh = '/bin/sh'..nl +bash = '/bin/bash'..nl +f = io.open('/etc/shells', 'a+') +if f then + local shells = nl..f:read('*all')..nl + if not shells:find(nl..sh) then f:write(sh) end + if not shells:find(nl..bash) then f:write(bash) end + f:close() +end + +%postun -p +-- Run it only if we are uninstalling +if arg[2] == 0 +then + t={} + for line in io.lines("/etc/shells") + do + if line ~= "/bin/bash" and line ~= "/bin/sh" + then + table.insert(t,line) + end + end + + f = io.open("/etc/shells", "w+") + for n,line in pairs(t) + do + f:write(line.."\n") + end + f:close() +end + +%files -f %{name}.lang +%config(noreplace) /etc/skel/.b* +%{_bindir}/sh +%{_bindir}/bash +%{_bindir}/alias +%{_bindir}/bg +%{_bindir}/cd +%{_bindir}/command +%{_bindir}/fc +%{_bindir}/fg +%{_bindir}/hash +%{_bindir}/getopts +%{_bindir}/jobs +%{_bindir}/read +%{_bindir}/type +%{_bindir}/ulimit +%{_bindir}/umask +%{_bindir}/unalias +%{_bindir}/wait +%dir %{_pkgdocdir}/ +%license COPYING +%attr(0755,root,root) %{_bindir}/bashbug[-.]* +%{_bindir}/bashbug +%{_infodir}/bash.info* +%{_mandir}/*/* +%{_mandir}/*/..1* +%doc RBASH README +%doc doc/{FAQ,INTRO,README,bash{,ref}.html} + +%files doc -f %{name}-doc.files +%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt + +%files devel +%{_includedir}/%{name} +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Mon Aug 09 2021 Mohan Boddu - 5.1.8-2 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Jul 23 2021 Siteshwar Vashisht - 5.1.8-1 +- Update to bash-5.1 patchlevel 8 + +* Thu Apr 15 2021 Mohan Boddu - 5.1.0-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 5.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 6 10:40:25 CET 2021 Siteshwar Vashisht - 5.1.0-1 +- Rebase to bash 5.1 + Resolves: #1904866 + +* Fri Dec 4 14:44:06 CET 2020 Siteshwar Vashisht - 5.0.17-3 +- Enable sourcing files from ~/.bashrc.d + Resolves: #1726397 + +* Mon Jul 27 2020 Fedora Release Engineering - 5.0.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 01 2020 Siteshwar Vashisht - 5.0.17-1 +- Update to bash-5.0 patchlevel 17 + +* Tue Jan 28 2020 Fedora Release Engineering - 5.0.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Dec 06 2019 Siteshwar Vashisht - 5.0.11-1 +- Update to bash-5.0 patchlevel 11 + Resolves: #1745602 + +* Fri Aug 02 2019 Kamil Dudka - 5.0.7-3 +- Sanitize public header file + Resolves: #1736676 + +* Wed Jul 24 2019 Fedora Release Engineering - 5.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue May 07 2019 Siteshwar Vashisht - 5.0.7-1 +- Update to bash-5.0 patchlevel 7 + +* Thu Feb 14 2019 Siteshwar Vashisht - 5.0.2-1 +- Rebase to bash 5.0 + Resolves: #1675080 + +* Thu Jan 31 2019 Fedora Release Engineering - 4.4.23-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 10 2019 Siteshwar Vashisht - 4.4.23-6 +- Avoid duplicating user path entries + Resolves: #1652639 + +* Mon Oct 08 2018 Siteshwar Vashisht - 4.4.23-5 +- Fix some issues identified by coverity + +* Mon Sep 10 2018 Siteshwar Vashisht - 4.4.23-4 +- Set custom PATH in non-login shells + Resolves: #1615131 + +* Thu Jul 12 2018 Fedora Release Engineering - 4.4.23-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 25 2018 Miro Hrončok - 4.4.23-2 +- Move user bin directories in front of the PATH + See: https://fedoraproject.org/wiki/Changes/UserPathPrioritization + Resolves: #1595098 + +* Tue Jun 12 2018 Siteshwar Vashisht - 4.4.23-1 +- Update to bash-4.4 patchlevel 23 + Resolves: #1585510 + +* Thu Mar 15 2018 Siteshwar Vashisht - 4.4.19-2 +- Fix handling case statement in command subsitution + Resolves: #1556867 + +* Mon Feb 12 2018 Siteshwar Vashisht - 4.4.19-1 +- Update to bash-4.4 patchlevel 19 + Resolves: #1540383 + +* Wed Feb 07 2018 Fedora Release Engineering - 4.4.12-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Nov 08 2017 Christoph Junghans - 4.4.12-13 +- Package headers in devel package, in prep for MPI-bash + +* Mon Oct 30 2017 Siteshwar Vashisht - 4.4.12-12 +- Revert change to always source from /etc/bashrc + +* Tue Aug 29 2017 Siteshwar Vashisht - 4.4.12-11 +- Always source from /etc/bashrc + Resolves: #1193590 + +* Tue Aug 22 2017 Siteshwar Vashisht - 4.4.12-10 +- Enable parallel builds + +* Tue Aug 08 2017 Siteshwar Vashisht - 4.4.12-9 +- command should not be treated as special builtin + Resolves: #1479220 + +* Wed Aug 02 2017 Fedora Release Engineering - 4.4.12-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 4.4.12-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 30 2017 Siteshwar Vashisht - 4.4.12-6 +- Fix test for comparing file modification times when they differ by subsecond + Resolves: #1458008 + +* Tue May 30 2017 Siteshwar Vashisht - 4.4.12-5 +- command builtin should not abort on variable assignment errors + Resolves: #1389838 + +* Wed Apr 26 2017 Siteshwar Vashisht - 4.4.12-4 +- Explicitly unset nonblocking mode while reading from stdin + Resolves: #1068697 + +* Wed Apr 26 2017 Siteshwar Vashisht - 4.4.12-3 +- Fix heredoc file descriptor leak + Resolves: #1413676 + +* Tue Apr 18 2017 Siteshwar Vashisht - 4.4.12-2 +- Document 'bashbug' for reporting bugs + Resolves: #1255886 + +* Mon Apr 10 2017 Siteshwar Vashisht - 4.4.12-1 +- Update to bash-4.4 patchlevel 12 + +* Fri Feb 10 2017 Fedora Release Engineering - 4.4.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sat Jan 21 2017 Siteshwar Vashisht - 4.4.11-1 +- Update to bash-4.4 patchlevel 11 + +* Mon Jan 16 2017 Siteshwar Vashisht - 4.4.5-1 +- Update to bash-4.4 patchlevel 5 + +* Fri Jan 06 2017 Siteshwar Vashisht - 4.4.0-1 +- Rebase to bash-4.4 + Resolves: #1376609 + +* Fri Sep 30 2016 Siteshwar Vashisht - 4.3.43-4 +- CVE-2016-7543: Fix for arbitrary code execution via SHELLOPTS+PS4 variables + Resolves: #1379634 + +* Wed Sep 21 2016 David Kaspar [Dee'Kej] - 4.3.43-3 +- CVE-2016-0634 - Fix for arbitrary code execution via malicious hostname + Resolves: #1377614 + +* Tue Sep 6 2016 David Kaspar [Dee'Kej] - 4.3.43-2 +- Inverted the condition for UsrMove safeguard check, so we comply with: + https://fedoraproject.org/wiki/Packaging:Conflicts + +* Thu Jun 23 2016 Siteshwar Vashisht - 4.3.43-1 +- Fix a crash in nested pipeline in lastpipe mode + Resolves: #1349430 + +* Tue May 17 2016 Siteshwar Vashisht - 4.3.42-5 +- Do not set terminate_immediately and interrupt_immediately while expanding tilda + Resolves: #1336800 + +* Wed Feb 03 2016 Fedora Release Engineering - 4.3.42-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jan 11 2016 Ondrej Oprala - 4.3.42-3 +- Actually do it properly this time + Related: #1297166 + +* Mon Jan 11 2016 Ondrej Oprala - 4.3.42-2 +- Provide exec-able alternatives to hash, type and ulimit + Resolves: #1297166 + +* Tue Aug 18 2015 Ondrej Oprala - 4.3.42-1 +- Patchlevel 42 + +* Mon Aug 03 2015 Ondrej Oprala - 4.3.39-6 +- #1245233 - fixed memleak + +* Wed Jul 15 2015 Ondrej Oprala - 4.3.39-5 +- #1182278 - bash crashes on `select' if REPLY is readonly +- #1241533,1224855 - bash memleak when LC_ALL set + +* Tue Jun 30 2015 Ondrej Oprala - 4.3.39-4 +- Fix a leak introduced by plevel39 + +* Tue Jun 30 2015 Ondrej Oprala - 4.3.39-3 +- Fix --rpm-requires + +* Wed Jun 17 2015 Fedora Release Engineering - 4.3.39-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu May 21 2015 Ondrej Oprala - 4.3.39-1 +- Patchlevel 39 + +* Mon Mar 16 2015 Than Ngo 4.3.33-3 +- rebuild against new gcc + +* Fri Jan 23 2015 Elad Alfassa - 4.3.25-3 +- Enable PIE (hardened build) + +* Tue Dec 30 2014 Ondrej Oprala - 4.3.33-1 +- Patchlevel 33 + +* Wed Oct 08 2014 Dan Horák - 4.3.30-2 +- force refreshing generated files, fixes build on s390 + +* Mon Oct 06 2014 Ondrej Oprala - 4.3.30-1 +- Patchlevel 30 + +* Mon Oct 06 2014 Ondrej Oprala - 4.3.28-1 +- RedHat's patchlevel 28 + +* Thu Sep 25 2014 Ondrej Oprala - 4.3.25-2 +- CVE-2014-7169 + Resolves: #1146319 ++ +* Thu Sep 25 2014 Ondrej Oprala - 4.3.25-1 +- Patchlevel 25 + +* Wed Sep 24 2014 Ondrej Oprala - 4.3.24-2 +- Inhibit code injection - patch by Stephane Chazelas + +* Wed Aug 20 2014 Ondrej Oprala - 4.3.24-1 +- Patchlevel 24 + +* Fri Aug 15 2014 Fedora Release Engineering - 4.3.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Aug 04 2014 Ondrej Oprala - 4.3.22-1 +- Patchlevel 22 + +* Wed Jul 30 2014 Ondrej Oprala - 4.3.18-7 +- #1102815 - fix double echo in vi visual mode + +* Thu Jul 24 2014 Ondrej Oprala - 4.3.18-6 +- Apply all upstream patches since 4.3-18-1 up to this date + +* Thu Jul 24 2014 Ondrej Oprala - 4.3.18-5 +- Array name expansion - apply upstream quickfix + +* Mon Jul 21 2014 Ondrej Oprala - 4.3.18-4 +- Mention ulimit -c and -f block size in POSIX mode + +* Fri Jul 11 2014 Tom Callaway - 4.3.18-3 +- fix license handling + +* Sat Jun 07 2014 Fedora Release Engineering - 4.3.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Apr 14 2014 Ondrej Oprala - 4.3.18-1 +- Patchlevel 18 + +* Mon Apr 14 2014 Ondrej Oprala - 4.3.11-2 +- And let the build system know... + +* Mon Apr 14 2014 Ondrej Oprala - 4.3.11-1 +- Patchlevel 11 + +* Tue Apr 01 2014 Ondrej Oprala - 4.3.8-1 +- Patchlevel 8 + +* Thu Feb 27 2014 Ondrej Oprala - 4.3.0-1 +- Update to bash-4.3 + +* Wed Dec 04 2013 Ondrej Oprala - 4.2.45-6 +- Change the paths for format-security patch + +* Wed Dec 04 2013 Ondrej Oprala - 4.2.45-5 +- bash FTBFS if -Werror=format-string is used (#1036998) + +* Fri Aug 09 2013 Roman Rakus - 4.2.45-4 +- Added suggestion to .bashrc how to disable autopaging in systemctl + +* Fri Jul 26 2013 Ville Skyttä - 4.2.45-3 +- Install docs to %%{_pkgdocdir} where available. +- Fix bogus dates in %%changelog. + +* Thu Jun 27 2013 Roman Rakus - 4.2.45-2 +- Fixed a bug that caused trap handlers to be executed recursively, + corrupting internal data structures. + +* Mon Mar 11 2013 Roman Rakus - 4.2.45-1 +- Patchlevel 45 + +* Thu Jan 31 2013 Roman Rakus - 4.2.42-3 +- Fix usage of partial unitialized structure + Resolves: #857948 + +* Thu Jan 31 2013 Roman Rakus - 4.2.42-2 +- Fix fd leaks + Resolves: #903833 + +* Thu Jan 03 2013 Roman Rakus - 4.2.42-1 +- Patchlevel 42 + +* Thu Nov 29 2012 Roman Rakus - 4.2.39-3 +- Use unsigned type for size + +* Tue Nov 27 2012 Roman Rakus - 4.2.39-2 +- Create bashbug symlink + +* Fri Nov 02 2012 Roman Rakus - 4.2.39-1 +- Patchlevel 39 + +* Tue Aug 28 2012 Roman Rakus - 4.2.37-8 +- Fix a comments in rpm changelog + +* Tue Aug 28 2012 Roman Rakus - 4.2.37-7 +- Update info about trap in man page + Resolves: #799958 +- instead of setting the signal handler to SIG_IGN while installing + the new trap handler, block the signal and unblock it after the new handler + is installed + Resolves: #695656 + +* Wed Aug 22 2012 Ondrej Oprala - 4.2.37-6 +- Revert revision 4.2.37-5 - already fixed upstream + +* Tue Aug 21 2012 Ondrej Oprala - 4.2.37-5 +- Don't filter out environmental variables with + a dot in the name + Resolves: #819995 + +* Wed Aug 08 2012 Roman Rakus - 4.2.37-4 +- Added doc subdir to bash-doc ownership list + Resolves: #846734 + +* Tue Jul 24 2012 Roman Rakus - 4.2.37-3 +- Increment patchlevel tag + +* Tue Jul 24 2012 Roman Rakus - 4.2.36-3 +- Patchlevel 37 + +* Wed Jul 18 2012 Fedora Release Engineering - 4.2.36-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jul 10 2012 Roman Rakus - 4.2.36-1 +- Patchlevel 36 + +* Sat Jun 23 2012 Roman Rakus - 4.2.29-3 +- Remove /bin from DEFAULT_PATH_VALUE + Resolves: #834571 + +* Thu May 31 2012 Roman Rakus - 4.2.29-2 +- Patchlevel 29 +- Also keep release at -2, so we are newer then f16 and f17 + +* Tue May 29 2012 Roman Rakus - 4.2.28-2 +- Provide exec-able alternatives to some builtins + Resolves #820192 + +* Wed May 09 2012 Roman Rakus - 4.2.28-1 +- Patchlevel 28 + +* Mon Apr 23 2012 Roman Rakus - 4.2.24-2 +- Don't call malloc in signal handler + +* Tue Mar 13 2012 Roman Rakus - 4.2.24-1 +- Patchlevel 24 + +* Wed Jan 25 2012 Harald Hoyer 4.2.20-4 +- install everything in /usr + https://fedoraproject.org/wiki/Features/UsrMove + +* Thu Jan 12 2012 Fedora Release Engineering - 4.2.20-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Nov 24 2011 Roman Rakus - 4.2.20-2 +- Add missing f:close() in postun +- Patchlevel 20 + +* Thu Nov 10 2011 Roman Rakus - 4.2.10-7 +- erase /bin/bash and /bin/sh in postun only if we are uninstalling (#752827) + +* Mon Nov 07 2011 Roman Rakus - 4.2.10-6 +- Simplified lua post script (#740611) + +* Fri Jul 29 2011 Roman Rakus - 4.2.10-5 +- Clean up unneeded bash-doc files (Ville Skyttä) (#721116) + +* Wed Jun 22 2011 Roman Rakus - 4.2.10-4 +- Don't crash when use `read' with associative array (#715050) + +* Tue Jun 07 2011 Roman Rakus - 4.2.10-3 +- Added $HOME/.local/bin to PATH in .bash_profile (#699812) + +* Thu May 05 2011 Roman Rakus - 4.2.10-2 +- Inc. a release no. + +* Thu May 05 2011 Roman Rakus - 4.2.10-1 +- Patchlevel 10 + +* Thu Mar 31 2011 Roman Rakus - 4.2.8-2 +- Remove bash-4.2-xdupmbstowcs2-patch, which introduced another bugs + +* Tue Mar 15 2011 Roman Rakus - 4.2.8-1 +- Patchlevel 8 + +* Tue Mar 15 2011 Roman Rakus - 4.2.7-3 +- #684293, fix the infinite loop with invalid wide char + +* Mon Mar 14 2011 Roman Rakus - 4.2.7-2 +- Use lua script in postun + +* Mon Mar 07 2011 Roman Rakus - 4.2.7-1 +- Patchlevel 7 + +* Wed Mar 02 2011 Roman Rakus - 4.2.6-1 +- Patchlevel 6 + +* Tue Mar 01 2011 Roman Rakus - 4.2.5-1 +- Patchlevel 5 +- Static analyzis show some issues in some patches +- Some cleanup + +* Wed Feb 16 2011 Roman Rakus - 4.2.0-2 +- pattern matching glitch, patch from upstream + +* Wed Feb 16 2011 Roman Rakus - 4.2.0-1 +- Release bash-4.2 + +* Mon Feb 14 2011 Roman Rakus - 4.2.0-0.2.rc2 +- Enable system-wide .bash_logout for login shells + +* Wed Feb 09 2011 Roman Rakus - 4.2.0-0.1.rc2 +- Update to bash-4.2-rc2 + +* Mon Feb 07 2011 Fedora Release Engineering - 4.1.9-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Jan 06 2011 Roman Rakus - 4.1.9-5 +- Builtins like echo and printf won't report errors + when output does not succeed due to EPIPE + +* Thu Dec 16 2010 Roman Rakus - 4.1.9-4 +- Drop doc/examples/loadables + +* Wed Dec 01 2010 Roman Rakus - 4.1.9-3 +- don't segfault when trying to bind int variable to array + with bad array subsrcipt + Resolves: #618289 + +* Fri Oct 15 2010 Ville Skyttä - 4.1.9-2 +- Move doc dir ownership to main package. +- Preserve doc timestamps. +- Add --without tests option for building without running the test suite. + +* Thu Oct 14 2010 Roman Rakus - 4.1.9-1 +- Patch level 9 + +* Mon Aug 02 2010 Roman Rakus - 4.1.7-4 +- Use better nomenclature for --rpm-requires bash option (#557134) + +* Tue Jun 22 2010 Roman Rakus - 4.1.7-3 +- Added missing patch + +* Tue Jun 22 2010 Roman Rakus - 4.1.7-2 +- Do the same CFLAGS in generated Makefile in examples + +* Fri May 21 2010 Roman Rakus - 4.1.7-1 +- Patch level 7 + +* Mon Apr 12 2010 Roman Rakus - 4.1.5-1 +- Patch level 5 +- There's no more need for Requires(post) ncurses-libs + +* Tue Mar 30 2010 Roman Rakus - 4.1.2-4 +- Corrected requires patch (#563301) + +* Fri Jan 22 2010 rrakus@redhat.com 4.1.2-3 +- Don't use cond-rmatch patch +- Use manso patch +- Include COPYING in base bash rpm + +* Fri Jan 22 2010 rrakus@redhat.com 4.1.2-2 +- Correct patchlevel 2 + +* Fri Jan 22 2010 Roman Rakus rrakus@redhat.com 4.1.2-1 +- Patchlevel 4.2 +- Removed old patch +- Returned back manso patch + +* Fri Jan 08 2010 Roman Rakus rrakus@redhat.com 4.1.0-2 +- Include COPYING in doc dir + +* Mon Jan 04 2010 Roman Rakus - 4.1.0-1 +- Upstream 4.1 + +* Sun Dec 27 2009 Roman Rakus - 4.1-0.2.rc1 +- Fixed patch for fuzz=0 + +* Sun Dec 27 2009 Roman Rakus - 4.1-0.1.rc1 +- Upstream 4.1.rc1 + +* Fri Dec 11 2009 Roman Rakus - 4.0.35-2 +- Don't segfault when TERM=eterm* and EMACS is unset (#530911) + +* Thu Oct 29 2009 Roman Rakus - 4.0.35-1 +- Patch level 35 + +* Mon Oct 05 2009 Roman Rakus - 4.0.33-2 +- Make symlink from bashbug-suffix to bashbug man pages + +* Wed Sep 16 2009 Roman Rakus - 4.0.33-1 +- Patch level 33 +- spec file cleanup + +* Fri Sep 04 2009 Roman Rakus - 4.0.28-3 +- check if interp section is NOBITS +- define Recycles pids + +* Wed Aug 26 2009 Roman Rakus - 4.0.28-2 +- alloc memory for key in creation associative array (#518644) + +* Tue Jul 28 2009 Roman Rakus - 4.0.28-1 +- Upstream patch level 28 + +* Fri Jul 24 2009 Fedora Release Engineering - 4.0.24-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue May 19 2009 Roman Rakus - 4.0.24-1 +- Upstream patch level 24 + +* Wed Apr 22 2009 Roman Rakus - 4.0.16-1 +- better to use patch level in version tag like vim do + +* Tue Apr 21 2009 Roman Rakus - 4.0-7.16 +- Use patch level in Release tag + +* Wed Apr 08 2009 Roman Rakus - 4.0-6 +- Official upstream patch level 16 + +* Mon Mar 30 2009 Roman Rakus - 4.0-5 +- Split documentation, use bash-doc package + Resolves: #492447 + +* Sat Mar 21 2009 Lubomir Rintel - 4.0-4 +- Add full URLs to upstream patches +- Don't uselessly use %%version macro + +* Wed Mar 11 2009 Roman Rakus - 4.0-3 +- Official upstream patch level 10 + +* Wed Feb 25 2009 Roman Rakus - 4.0-2 +- Save parser state in pcomplete. + Resolves: #487257 + +* Tue Feb 24 2009 Roman Rakus - 4.0-1 +- Release of bash-4.0 + +* Mon Feb 23 2009 Fedora Release Engineering - 4.0-0.5.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 11 2009 Roman Rakus - 4.0-0.4.rc1 +- Fix handling pipelines with `set -e' + Resolves: #483385 + +* Thu Jan 29 2009 Roman Rakus - 4.0-0.3.rc1 +- No more debug output + Resolves: #483002 + +* Wed Jan 28 2009 Jesse Keating - 4.0-0.2.rc1 +- Replace post code with lua to be able to not have external deps + +* Mon Jan 26 2009 Roman Rakus - 4.0-0.1.rc1 +- Fixed release tag + +* Wed Jan 21 2009 Roman Rakus - 4.0-rc1.1 +- Bump to upstream bash-4.0-rc1 + +* Mon Dec 15 2008 Roman Rakus - 3.2-33 +- fc builtin fix + Resolves: #438841 + +* Mon Dec 15 2008 Roman Rakus - 3.2-32 +- Enabling auditing + Resolves: #476216 + +* Tue Dec 09 2008 Roman Rakus - 3.2-31 +- Patchlevel 48 + +* Thu Dec 04 2008 Roman Rakus - 3.2-30 +- Added check for `command_not_found_handler' shell function + Resolves: #432579 + +* Tue Oct 28 2008 Jesse Keating - 3.2-29 +- Add the Requires(post) back for ncurses-libs, so that rpm knows + where to break the loop. The post actually does require the curses + libs for the sh calls. Could consider doing this in LUA and not have + any external deps. + +* Thu Oct 23 2008 Roman Rakus - 3.2-28 +- Removing Requires for mktemp and ncurses, which cause + dependencing loop +- Enabling #define SSH_SOURCE_BASHRC, because ssh changed. + Resolves: #458839 +- Catch signals right after calling execve() + Resolves: #455548 + +* Thu Jul 17 2008 Roman Rakus - 3.2-27 +- Changes in man page - #442018, #445692, #446625, #453409 +- Changed patches to satisfy fuzz=0 + +* Thu Jun 5 2008 Roman Rakus - 3.2-26 +- Patchlevel 39 + +* Tue Jun 3 2008 Roman Rakus - 3.2-25 +- #449512 - reverting back last change - don't use glob library + +* Wed May 28 2008 Roman Rakus - 3.2-24 +- #217359 - use posix glob library + +* Thu May 22 2008 Roman Rakus - 3.2-23 +- #446420 - COMP_WORDBREAKS settings now works + +* Fri Feb 29 2008 Tomas Janousek - 3.2-22 +- drop /usr/bin/clear from /etc/skel/.bash_logout as suggested by #429406 + +* Wed Feb 20 2008 Fedora Release Engineering - 3.2-21 +- Autorebuild for GCC 4.3 + +* Mon Jan 14 2008 Tomas Janousek - 3.2-20 +- Added bash32-026 upstream official patch +- Added bash32-027 upstream official patch (#249987) +- Added bash32-028 upstream official patch +- Added bash32-029 upstream official patch (#286861) +- Added bash32-030 upstream official patch +- Added bash32-031 upstream official patch (#358231) +- Added bash32-032 upstream official patch +- Added bash32-033 upstream official patch +- Fix insert command repeating in vi mode (#190350) + +* Tue Nov 06 2007 Tomas Janousek - 3.2-19 +- fix cursor position when prompt has one invisible character (#358231) +- dropped examples/loadables/ from docs, since it wasn't possible to build them + anyway (#174380) +- fix #286861: Wrong input confuses bash's arithmetic unit permanently +- fix #344411: $RANDOM stays the same when job executed in the background + +* Fri Aug 31 2007 Pete Graner - 3.2-18 +- Added bash32-021 upstream official patch +- Added bash32-025 upstream official patch +- Added bash32-024 upstream official patch +- Added bash32-023 upstream official patch +- Added bash32-022 upstream official patch + +* Wed Aug 29 2007 Pete Graner - 3.2-17 +- Added bash32-018 upstream official patch +- Added bash32-020 upstream official patch +- Added bash32-019 upstream official patch + +* Thu Aug 23 2007 Pete Graner - 3.2-16 +- Rebuild + +* Mon Aug 20 2007 Pete Graner - 3.2-15 +- Update to the Improve bash $RANDOM pseudo RNG (bug #234906) + now works with subshells and make $RANDOM on demand thus reducing the + amount of AVCs thrown. + +* Thu Aug 16 2007 Pete Graner - 3.2-15 +- Changed spec file License to GPLv2+ + +* Wed Aug 15 2007 Pete Graner - 3.2-13 +- Improve bash $RANDOM pseudo RNG (bug #234906) + +* Fri Jul 20 2007 Tim Waugh 3.2-12 +- Quote environment variables in the post scriptlet to prevent upgrade + failures (bug #249005). + +* Thu Jul 5 2007 Tim Waugh 3.2-11 +- Patchlevel 17 (bug #241647). + +* Wed Jul 4 2007 Tim Waugh 3.2-10 +- Clarification in the ulimit man page (bug #220657). + +* Mon Feb 12 2007 Tim Waugh 3.2-9 +- Rebuild to link with libtinfo instead of libncurses. + +* Wed Feb 7 2007 Tim Waugh 3.2-8 +- Avoid %%makeinstall (bug #225609). + +* Tue Feb 6 2007 Tim Waugh 3.2-7 +- Reinstated this change: + - Post requires ncurses (bug #224567). +- Reverted this change: + - Added triggers for install-info (bug #225609). + +* Tue Feb 6 2007 Tim Waugh 3.2-6 +- Reverted this change: + - Post requires ncurses (bug #224567). + +* Mon Feb 5 2007 Tim Waugh 3.2-5 +- Added triggers for install-info (bug #225609). +- Use full path to utilities in scriptlets (bug #225609). +- Fix missing sh-bangs in example scripts (bug #225609). +- Post requires ncurses (bug #224567). +- Removed Prefix tag (bug #225609). +- Fixed BuildRoot tag (bug #225609). +- Removed trailing full-stop from summary (bug #225609). +- Spec file is now UTF-8 (bug #225609). +- Removed obsolete Obsoletes (bug #225609). +- Moved 'make check' to new 'check' section (bug #225609). +- Removed uses of RPM_SOURCE_DIR (bug #225609). +- Fixed macros in changelog (bug #225609). +- Changed tabs to spaces (bug #225609). + +* Tue Jan 23 2007 Tim Waugh 3.2-4 +- Slightly better .bash_logout (bug #223960). + +* Fri Jan 19 2007 Tim Waugh 3.2-3 +- Back out rmatch change introduced in 3.2 (bug #220087). + +* Tue Jan 16 2007 Miroslav Lichvar 3.2-2 +- Link with ncurses. + +* Fri Dec 15 2006 Tim Waugh 3.2-1 +- Build requires autoconf and gettext. +- 3.2. No longer need aq, login, ulimit, sighandler or read-memleak + patches. + +* Wed Jul 12 2006 Tim Waugh 3.1-17 +- Fixed 'tags out of date' problem with 'info bash' (bug #150118). + +* Wed Jul 12 2006 Jesse Keating - 3.1-16.1 +- rebuild + +* Wed Jun 28 2006 Tim Waugh 3.1-16 +- Removed 'unset USERNAME' from default .bash_profile (bug #196735). + +* Thu Jun 15 2006 Tim Waugh 3.1-15 +- Updated requires patch to the ALT version. + +* Wed May 31 2006 Tim Waugh 3.1-14 +- More sighandler fixes, this time hypothetical. + +* Thu May 25 2006 Tim Waugh 3.1-13 +- Another fix for the sighandler patch (bug #192297). + +* Thu Apr 13 2006 Tim Waugh 3.1-12 +- Patchlevel 17. + +* Tue Apr 4 2006 Tim Waugh 3.1-11 +- Patchlevel 16. + +* Thu Mar 23 2006 Tim Waugh 3.1-10 +- Patchlevel 14. + +* Thu Mar 2 2006 Tim Waugh 3.1-9 +- Fixed duplicate documentation of ulimit '-x' option introduced by + ulimit patch (bug #183596). + +* Tue Feb 21 2006 Tim Waugh 3.1-8 +- Patchlevel 10. + +* Thu Feb 16 2006 Tim Waugh 3.1-7 +- Patchlevel 8. + +* Fri Feb 10 2006 Jesse Keating - 3.1-6.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 3.1-6.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Sun Feb 5 2006 Tim Waugh 3.1-6 +- Patchlevel 7. + +* Wed Jan 18 2006 Tim Waugh +- Removed inaccuracies from %%description (bug #178189). + +* Fri Jan 13 2006 Tim Waugh 3.1-5 +- Fix 'exec -l /bin/bash'. + +* Thu Jan 12 2006 Tim Waugh 3.1-4 +- Fix sighandler patch bug (bug #177545). + +* Tue Jan 10 2006 Tim Waugh 3.1-3 +- Patchlevel 5. + +* Fri Jan 6 2006 Tim Waugh 3.1-2 +- No longer need loadables, mbinc or shellfunc patches. +- Use literal single-quote in bash man page where appropriate (bug #177051). + +* Mon Jan 2 2006 Tim Waugh 3.1-1 +- 3.1. +- No longer need ia64, utf8, multibyteifs, jobs, sigpipe, + read-e-segfault, manpage, crash, pwd, afs, subshell patches. +- Remove wrap patch for now. +- Use upstream patch to fix arrays. + +* Thu Dec 15 2005 Tim Waugh 3.0-41 +- Missed another loop for improved sighandler patch (bug #169231). + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Thu Dec 8 2005 Tim Waugh 3.0-40 +- Fix read memleak when reading from non-blocking fd (bug #173283). +- Missed another loop for improved sighandler patch (bug #169231). + +* Wed Dec 7 2005 Tim Waugh 3.0-39 +- Missed a loop for improved sighandler patch (bug #169231). + +* Tue Dec 6 2005 Tim Waugh 3.0-38 +- Test out improved sighandler patch (bug #169231). + +* Tue Nov 22 2005 Tim Waugh 3.0-37 +- Applied patch from upstream to fix parsing problem (bug #146638). + +* Wed Nov 9 2005 Tim Waugh 3.0-36 +- Added Url: tag (bug #172770). +- Do not explicitly gzip info pages (bug #172770). +- Fix permissions on bashbug (bug #172770). + +* Thu Oct 6 2005 Tim Waugh 3.0-35 +- Fixed memory allocation bug in multibyteifs patch (bug #169996). + +* Fri Sep 23 2005 Tim Waugh +- Use 'volatile' in sighandler patch. + +* Wed Sep 21 2005 Tim Waugh 3.0-34 +- Avoid writing history files during signal handling (bug #163235). + +* Mon Aug 8 2005 Tim Waugh 3.0-33 +- Fixed multibyte IFS handling for invalid input (bug #165243). + +* Mon Aug 8 2005 Tim Waugh 3.0-32 +- Fixed 'LC_ALL=C export LC_ALL' behaviour (bug #165249). + +* Thu Jun 23 2005 Tim Waugh +- Added ulimit support for RLIMIT_NICE and RLIMIT_RTPRIO (bug #157049). + +* Wed Jun 8 2005 Tim Waugh +- Move a comment in dot-bashrc (bug #159522). + +* Tue May 10 2005 Tim Waugh 3.0-31 +- Small fix for multibyteifs patch to prevent segfault (bug #157260). + +* Wed Apr 20 2005 Tim Waugh +- Fixed AFS support for output redirection, so that the correct errors + are reported for other filesystems (bug #155373). + +* Tue Mar 15 2005 Tim Waugh 3.0-30 +- Fix PS1 expansion crash when PWD is unset (bg #151116). + +* Wed Mar 2 2005 Tim Waugh 3.0-29 +- Rebuild for new GCC. + +* Thu Feb 17 2005 Tim Waugh 3.0-28 +- Define _GNU_SOURCE in CPPFLAGS (bug #147573). + +* Mon Feb 14 2005 Tim Waugh +- Reverted this change: + - Added code to /etc/skel/.bash_logout to support the gpm selection buffer + invalidation on virtual terminals (bug #115493). + +* Mon Jan 31 2005 Tim Waugh 3.0-27 +- Applied upstream patch to fix a potential NULL dereference. + +* Fri Jan 28 2005 Tim Waugh 3.0-26 +- Fixed job handling bug (bug #145124). + +* Sun Dec 5 2004 Tim Waugh 3.0-25 +- Applied patch from Florian La Roche to fix CPPFLAGS quoting in spec file. + +* Tue Nov 30 2004 Tim Waugh +- Fixed typo in man page (spotted on bug-bash). + +* Thu Nov 18 2004 Tim Waugh 3.0-24 +- Use upstream patch to fix bug #139575 and bug #139306. + +* Thu Nov 18 2004 Tim Waugh 3.0-23 +- Fixed last patch to avoid regressions (bug #139575). + +* Mon Nov 15 2004 Tim Waugh 3.0-22 +- Fixed prompt wrapping code to cope with zero-length prompts (bug #139306). + +* Thu Nov 11 2004 Tim Waugh 3.0-21 +- Added code to /etc/skel/.bash_logout to support the gpm selection buffer + invalidation on virtual terminals (bug #115493). + +* Wed Nov 10 2004 Tim Waugh 3.0-20 +- Patchlevel 16. + +* Mon Nov 1 2004 Tim Waugh +- Patchlevel 15. + +* Tue Oct 19 2004 Tim Waugh 3.0-17 +- Patchlevel 14. +- No longer need brace patch. + +* Wed Sep 29 2004 Tim Waugh 3.0-16 +- Apply patch from Chet Ramey to fix brace expansion. + +* Fri Sep 24 2004 Tim Waugh 3.0-15 +- Minor fix for job handling. + +* Mon Sep 13 2004 Tim Waugh +- Add bashbug back in (with suffix). + +* Mon Sep 13 2004 Tim Waugh +- Remove bash2. + +* Fri Sep 10 2004 Tim Waugh 3.0-14 +- Don't run tests that read from /dev/tty. +- Patchlevel 13. + +* Wed Sep 8 2004 Tim Waugh 3.0-13 +- Check for EINVAL from waitpid() and avoid WCONTINUED in that case. +- Fixed jobs4 test. +- Applied experimental upstream patch for trap compatibility. +- Re-make documentation to reflect source changes. + +* Tue Sep 7 2004 Tim Waugh 3.0-12 +- Remove 'bashbug' from the documentation, because we don't ship it due + to biarch concerns. + +* Thu Sep 2 2004 Tim Waugh 3.0-11 +- Fixed multibyte parameter length expansion. + +* Tue Aug 31 2004 Tim Waugh 3.0-9 +- Fix ulimits patch from Ulrich Drepper (bug #129800). + +* Fri Aug 27 2004 Tim Waugh 3.0-8 +- Provide support for new limits (bug #129800). + +* Thu Aug 26 2004 Tim Waugh 3.0-7 +- Use upstream patch for last fix. + +* Thu Aug 26 2004 Tim Waugh 3.0-6 +- Fixed history saved-line handling. + +* Tue Aug 24 2004 Tim Waugh +- Fixed multibyte IFS handling. + +* Wed Aug 18 2004 Tim Waugh +- Applied bug-bash list patch to fix pipefail. + +* Tue Aug 17 2004 Tim Waugh 3.0-5 +- Make trap usage string show POSIX usage (bug #128938). +- Updated ${x[@]:1} expansion fix from bug-bash list. +- Updated patch to fix unset array crash (from bug-bash list). + +* Sun Aug 15 2004 Tim Waugh +- Fix ${x[@]:1} expansion (William Park, bug-bash list). + +* Tue Aug 10 2004 Tim Waugh 3.0-4 +- Fix vi-change-char behaviour at EOL (bug #129526). + +* Mon Aug 9 2004 Tim Waugh 3.0-3 +- Applied bug-bash list patch to fix multiline PS1 prompting (bug #129382). + +* Wed Aug 4 2004 Tim Waugh 3.0-2 +- Fixed brace expansion (bug #129128). +- Build with AFS support again, since bug #86514 seems fixed upstream + (bug #129094). + +* Tue Aug 3 2004 Tim Waugh +- Fixed crash when unsetting an unset array (from bug-bash list). + +* Wed Jul 28 2004 Tim Waugh 3.0-1 +- 3.0. + +* Wed Jul 21 2004 Tim Waugh 2.05b-44 +- Don't report SIGPIPE errors (bug #128274). + +* Thu Jul 8 2004 Tim Waugh 2.05b-43 +- Fixed command substitution problem (bug #127242). + +* Mon Jun 28 2004 Tim Waugh 2.05b-42 +- Fixed multibyte variable substitution patch (bug #126399). + +* Thu Jun 17 2004 Karsten Hopp 2.05b-41 +- remove bashbug script/docs to avoid conflicting files in + biarch installs. + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Jun 4 2004 Tim Waugh +- Build requires bison (bug #125307). + +* Wed Jun 2 2004 Tim Waugh 2.05b-39 +- Build requires libtermcap-devel (bug #125068). + +* Wed May 19 2004 Tim Waugh +- Don't ship empty %%{_libdir}/bash (bug #123556). + +* Thu Mar 11 2004 Tim Waugh 2.05b-38 +- Apply patch from Nalin Dahyabhai fixing an overread. + +* Tue Mar 02 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Jan 22 2004 Tim Waugh 2.05b-36 +- Fix the bug causing bindings to need reparsing .inputrc (bug #114101). + +* Mon Jan 5 2004 Tim Waugh 2.05b-35 +- Fix parameter expansion in multibyte locales (bug #112657). +- Run 'make check'. + +* Tue Dec 9 2003 Tim Waugh 2.05b-34 +- Build requires texinfo (bug #111171). + +* Fri Nov 28 2003 Tim Waugh 2.05b-33 +- Speed up UTF-8 command-line redrawing in the common case (bug #102353, + bug #110777). + +* Thu Nov 6 2003 Tim Waugh 2.05b-32 +- Apply upstream patches (bug #109269 among others). + +* Fri Oct 31 2003 Tim Waugh +- Fix bash.info (bug #83776). + +* Tue Oct 28 2003 Tim Waugh 2.05b-31 +- Add bash205b-007 patch to fix bug #106876. + +* Thu Oct 23 2003 Tim Waugh 2.05b-30 +- Rebuilt. + +* Thu Sep 18 2003 Tim Waugh 2.05b-29.1 +- Rebuilt. + +* Thu Sep 18 2003 Tim Waugh 2.05b-29 +- Avoid crashing on multibyte input when locale is set incorrectly + (bug #74266). + +* Fri Sep 5 2003 Tim Waugh 2.05b-28.1 +- Rebuilt. + +* Fri Sep 5 2003 Tim Waugh 2.05b-28 +- Avoid built-in malloc implementation (bug #103768). + +* Wed Sep 3 2003 Tim Waugh 2.05b-27.1 +- Rebuilt. + +* Wed Sep 3 2003 Tim Waugh 2.05b-27 +- LFS support (bug #103627). + +* Thu Jul 31 2003 Tim Waugh 2.05b-26.1 +- Rebuilt. + +* Thu Jul 31 2003 Tim Waugh 2.05b-26 +- Merge bash-doc into main package (bug #100632). + +* Wed Jun 04 2003 Elliot Lee 2.05b-25 +- rebuilt + +* Mon May 12 2003 Tim Waugh 2.05b-24 +- Fix completion display when multibyte or control characters are to be + shown (bug #90201). + +* Wed Mar 26 2003 Tim Waugh 2.05b-23 +- Fix a warning message (bug #79629). +- Don't remove generated source during build, for debuginfo package. +- Don't build with AFS support (bug #86514). + +* Tue Mar 25 2003 Tim Waugh 2.05b-22 +- Really fix bug #78455. + +* Tue Mar 11 2003 Tim Waugh 2.05b-21 +- Don't explicitly strip binaries (bug #85995). + +* Tue Feb 11 2003 Tim Waugh 2.05b-20 +- Really fix bug #83331 for good. + +* Mon Feb 10 2003 Tim Waugh 2.05b-19 +- Fix builtins.1. + +* Fri Feb 7 2003 Tim Waugh 2.05b-18 +- Actually apply the patch (bug #83331). + +* Wed Feb 5 2003 Tim Waugh 2.05b-17 +- Fix history/UTF-8 bug (bug #83331). + +* Sun Jan 26 2003 Tim Waugh 2.05b-16 +- More tab-completion fixing (bug #72512). + +* Wed Jan 22 2003 Tim Powers 2.05b-15 +- rebuilt + +* Wed Jan 15 2003 Tim Waugh 2.05b-14 +- Force pgrp synchronization (bug #81653). + +* Thu Dec 05 2002 Elliot Lee 2.05b-13 +- (patch26) Don't call 'size' in makefile. Pointless, and interferes with + cross compiles. + +* Tue Dec 3 2002 Tim Waugh 2.05b-12 +- Prevent prompt overwriting output (bug #74383). + +* Wed Nov 27 2002 Tim Waugh 2.05b-11 +- Fix '-rbash' (bug #78455). + +* Thu Nov 21 2002 Tim Waugh 2.05b-10 +- Rebuild. + +* Wed Nov 20 2002 Elliot Lee +- Use the configure macro instead of calling ./configure directly + +* Wed Nov 13 2002 Tim Waugh +- Revert previous change. + +* Wed Nov 13 2002 Tim Waugh 2.05b-8 +- PreReq libtermcap. + +* Fri Oct 18 2002 Tim Waugh 2.05b-7 +- Add readline-init patch (bug #74925). + +* Wed Oct 16 2002 Tim Waugh 2.05b-6 +- Add the (4) patches from ftp.gnu.org (bug #75888, bug #72512). +- Ship '.' man page, which doesn't get picked up by glob. +- Don't install files not shipped when building. +- Locale shell variables fix (bug #74701). + +* Fri Aug 23 2002 Tim Powers 2.05b-5 +- re-bzip the docs, something was corrupted + +* Thu Aug 22 2002 Tim Waugh 2.05b-4 +- Fix history substitution modifiers in UTF-8 (bug #70294, bug #71186). +- Fix ADVANCE_CHAR at end of string (bug #70819). +- docs: CWRU/POSIX.NOTES no longer exists, but ship POSIX. + +* Wed Aug 07 2002 Phil Knirsch 2.05b-3 +- Fixed out of memory problem with readline. + +* Tue Jul 23 2002 Phil Knirsch 2.05b-2 +- Added symlink for sh.1 in man1 section so that man sh works (#44039). + +* Mon Jul 22 2002 Phil Knirsch 2.05b-1 +- Update to 2.05b + +* Wed Jul 10 2002 Phil Knirsch 2.05a-16 +- Fixed readline utf8 problem (#68313). + +* Fri Jun 21 2002 Tim Powers 2.05a-15 +- automated rebuild + +* Thu May 23 2002 Tim Powers 2.05a-14 +- automated rebuild + +* Fri Apr 12 2002 Tim Powers 2.05a-13 +- don't build the stuff in examples/loadables. It breaks FHS + compliance + +* Fri Apr 5 2002 Bernhard Rosenkraenzer 2.05a-12 +- Fix the fix for #62418 + +* Thu Apr 4 2002 Bernhard Rosenkraenzer 2.05a-11 +- Fix kill builtin (#62418) + +* Mon Mar 25 2002 Trond Eivind Glomsrød 2.0.5a-10 +- Get rid of completion subpackage +- Use %%{_tmppath} + +* Mon Mar 11 2002 Bernhard Rosenkraenzer 2.05a-9 +- Add patch from Ulrich Drepper to get better error messages when trying + to launch an application with a bad ELF interpreter (e.g. libc5 ld.so) + (#60870) + +* Fri Feb 22 2002 Bernhard Rosenkraenzer 2.05a-8 +- Update completion + +* Wed Jan 30 2002 Bernhard Rosenkraenzer 2.05a-7 +- Update completion stuff and move it to a separate package + +* Sat Jan 26 2002 Bernhard Rosenkraenzer 2.05a-6 +- Add patches from Ian Macdonald + +* Wed Jan 23 2002 Bernhard Rosenkraenzer 2.05a-5 +- Add programmable completion (optional) + +* Thu Jan 17 2002 Bernhard Rosenkraenzer 2.05a-4 +- Fix mailcheck (#57792) + +* Tue Jan 15 2002 Bernhard Rosenkraenzer 2.05a-3 +- Fix autoconf mess +- Build --with-afs, some users may be using it + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Thu Nov 22 2001 Bernhard Rosenkraenzer 2.05a-2 +- Fix conflict with sh-utils (printf builtin manpage vs. printf binary manpage) + (#56590) + +* Tue Nov 20 2001 Bernhard Rosenkraenzer 2.05a-1 +- 2.05a + +* Wed Oct 10 2001 Florian La Roche +- disable s390x fix, not needed anymore + +* Mon Oct 1 2001 Bernhard Rosenkraenzer 2.05-9 +- Add patch from readline 4.2-3 to bash's internal libreadline + +* Mon Jul 9 2001 Bernhard Rosenkraenzer 2.05-8 +- Merge Pekka Savola's patch (RFE#47762) + +* Mon Jul 2 2001 Pekka Savola +- Add IPv6 patch from PLD (only redirection to /dev/{tcp,udp}/host/port + support) + +* Sun Jun 24 2001 Bernhard Rosenkraenzer 2.05-7 +- Add some bugfix patches from the maintainer + +* Mon Jun 11 2001 Florian La Roche +- added patch for s390x from + +* Wed May 23 2001 Bernhard Rosenkraenzer 2.05-5 +- Don't set BASH_ENV in .bash_profile, it causes .bashrc to be sourced + twice in interactive non-login shells. +- s/Copyright/License/ + +* Sat May 5 2001 Bernhard Rosenkraenzer 2.05-4 +- Fix tempfile creation in bashbug + +* Wed May 2 2001 Preston Brown 2.05-3 +- bashrc moved to setup package + +* Tue Apr 24 2001 Bernhard Rosenkraenzer 2.05-2 +- bash comes with its own copy of readline... Add the patches we're + applying in the readline package. + +* Tue Apr 24 2001 Bernhard Rosenkraenzer 2.05-1 +- Update to 2.05 +- Change PROMPT_COMMAND in bashrc for xterms + to something less space consuming (#24159) +- Provide plugs for alternate prompt commands (#30634), but don't + default to them + +* Mon Mar 19 2001 Preston Brown +- add default aliases for 'dir' and 'df' to have human readable output + +* Wed Feb 28 2001 Matt Wilson +- don't Prereq: /sbin/install-info! + +* Tue Feb 27 2001 Preston Brown +- noreplace config files +- don't own /etc/skel directory + +* Thu Feb 22 2001 Harald Hoyer +- changed /etc/bashrc to work with backspace = 0177 (rxvt) + +* Wed Feb 07 2001 Florian La Roche +- changed /etc/skel/.bash_profile to "unset USERNAME" + +* Mon Feb 5 2001 Yukihiro Nakai +- Delete Japanese resources from dot-bashrc + and move them to each package. + +* Fri Dec 15 2000 Yukihiro Nakai +- Add Japanese resource to dot-bashrc + +* Mon Dec 11 2000 Bernhard Rosenkraenzer +- rebuild to get rid of 0777 doc dirs + +* Thu Nov 16 2000 Bernhard Rosenkraenzer +- restore the ^Hs in documentation, they're highlighting sequences + for less (#20654) + +* Fri Sep 15 2000 Florian La Roche +- bash-2.04-export.patch is reported to fix compilation + of older glibc-2.1 sources + +* Tue Aug 22 2000 Matt Wilson +- fixed the summary of bash-doc to use %%{version} instead of "2.03" + +* Tue Aug 8 2000 Bill Nottingham +- 'exit' in bashrc is very bad. + +* Tue Aug 8 2000 Bernhard Rosenkraenzer +- minor bashrc fix (Bug #8518) + +* Mon Jul 17 2000 Bernhard Rosenkraenzer +- Don't use tput etc. in bashrc if /usr isn't available (Bug #14116) + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Thu Jun 22 2000 Bill Nottingham +- fix for some IA-64 issues from Stephane Eranian + +* Thu Jun 15 2000 Bernhard Rosenkraenzer +- Fix summary and description, they had old version numbers (Bug #12092) + +* Tue Jun 6 2000 Bill Nottingham +- add /etc/skel/.bash* ; obsolete etcskel + +* Tue May 2 2000 Bill Nottingham +- fix for shell functions on 64-bit architectures... + +* Wed Mar 29 2000 Bernhard Rosenkraenzer +- Add some backwards compatibility (for i in ; do something; done) + +* Tue Mar 21 2000 Bernhard Rosenkraenzer +- 2.04 final +- remove the echo, pwd, test and kill man pages from the package, + we're getting them from sh-utils + +* Sun Mar 19 2000 Bernhard Rosenkraenzer +- 2.04beta5 +- adapt patches +- Fix up bashrc +- Don't put in bashrc1, this should be done by the bash1 package +- use install -c instead of plain install to work on *BSD +- remove the collected patches - they're now in the base version. +- make compressed man pages optional + +* Thu Mar 16 2000 Florian La Roche +- add some collected patches for bash2 +- change it over to be the main bash package +- install man-pages root:root +- obsolete bash2, bash2-doc + +* Wed Feb 02 2000 Cristian Gafton +- man pages are compressed +- fix description + +* Thu Dec 2 1999 Ken Estes +- updated patch to detect what executables are required by a script. + +* Tue Sep 14 1999 Dale Lovelace +- Remove annoying ^H's from documentation + +* Fri Jul 16 1999 Ken Estes +- patch to detect what executables are required by a script. + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 4) + +* Fri Mar 19 1999 Jeff Johnson +- strip binaries. +- include bash-doc correctly. + +* Thu Mar 18 1999 Preston Brown +- fixed post/postun /etc/shells work. + +* Thu Mar 18 1999 Cristian Gafton +- updated again text in the spec file + +* Mon Feb 22 1999 Jeff Johnson +- updated text in spec file. +- update to 2.03. + +* Fri Feb 12 1999 Cristian Gafton +- build it as bash2 instead of bash + +* Tue Feb 9 1999 Bill Nottingham +- set 'NON_INTERACTIVE_LOGIN_SHELLS' so profile gets read + +* Thu Jan 14 1999 Jeff Johnson +- rename man pages in bash-doc to avoid packaging conflicts (#606). + +* Wed Dec 02 1998 Cristian Gafton +- patch for the arm +- use $RPM_ARCH-redhat-linux as the build target + +* Tue Oct 6 1998 Bill Nottingham +- rewrite %%pre, axe %%postun (to avoid prereq loops) + +* Wed Aug 19 1998 Jeff Johnson +- resurrect for RH 6.0. + +* Sun Jul 26 1998 Jeff Johnson +- update to 2.02.1 + +* Thu Jun 11 1998 Jeff Johnson +- Package for 5.2. + +* Mon Apr 20 1998 Ian Macdonald +- added POSIX.NOTES doc file +- some extraneous doc files removed +- minor .spec file changes + +* Sun Apr 19 1998 Ian Macdonald +- upgraded to version 2.02 +- Alpha, MIPS & Sparc patches removed due to lack of test platforms +- glibc & signal patches no longer required +- added documentation subpackage (doc) + +* Fri Nov 07 1997 Donnie Barnes +- added signal handling patch from Dean Gaudet that + is based on a change made in bash 2.0. Should fix some early exit + problems with suspends and fg. + +* Mon Oct 20 1997 Donnie Barnes +- added %%clean + +* Mon Oct 20 1997 Erik Troan +- added comment explaining why install-info isn't used +- added mips patch + +* Fri Oct 17 1997 Donnie Barnes +- added BuildRoot + +* Tue Jun 03 1997 Erik Troan +- built against glibc