Commit Graph
28 Commits
Author SHA1 Message Date
Wei-Ting Yang 6fd88543e2 bash: update to 5.3 patch level 20
- Accommodate macOS dynamic pipe sizing, avoiding hangs.
- Modify the readline redisplay code to use a buffer offset instead of
  the physical prompt length in a multibyte locale to determine whether
  to reprint the prompt from column 0 because the cursor is before the
  last invisible character in the prompt string.
- Fix readline crash with a prompt that exceeds 256 wrapped lines.
  Fix readline redisplay code to print the entire prompt if the first
  few characters are identical but part of a terminal escape sequence
  and the prompt needs to be redrawn.
- Work around systems including bytes between 128 and 255 in the
  isalpha(3) set, which causes bash to potentially include them in
  identifier names.
- If readline handles a SIGWINCH and updates its idea of the screen
  dimensions, it needs to recompute the columns where the prompt wraps
  lines every time, not just when the screen width decreases.

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-09-16 18:53:00 +03:00
Wei-Ting Yang bdd34b5a27 bash: update to 5.3 patch level 15
- Fix technically undefined behavior when comparing return value from
  realloc to the original pointer
- Update mapfile patch 11, removing stray line and improving the
  efficiency of the original fix
- Fix read builtin to avoid cases where -1 is used as an index into the
  input buffer

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-06-20 18:48:35 +02:00
Wei-Ting Yang 3085718815 bash: update to 5.3 patch level 12
- Fix loop in subshells calling wait builtin with inherited job list
- Fix mapfile problem when callback unsets the variable it is modifying
- Fix subshells inappropriately running the EXIT trap if they receive a
  fatal signal before resetting traps

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-06-09 13:17:25 +02:00
Wei-Ting Yang 4a02dcb1c3 bash: update to 5.3 patch level 9
- Fix posix-mode issue with "wait -n", where it can return process IDs
  outside the requested set
- Do not try to use shm_open, there is too much variance in behavior
  across systems
- Remove internal quoting that causes failures when expanding nested
  array subscripts in an arithmetic context
- Fix issue with source when read(2) returns fewer characters than
  fstat(2) says are available
- Fix crash when restoring default disposition for SIGINT in
  asynchronous subshell
- Fix issues with range expressions and non-ascii characters in glob
  patterns when globasciiranges is enabled
- Fix issue where nofork command substitutions can affect
  redirections in the calling shell
- Fix issue with calling mbrtowc too much when translating
  ansic-single-quoted strings
- Fix crash when interrupting reverse i-search with ^C

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-01-18 07:19:05 +02:00
Wei-Ting Yang 7c822261b0 bash: update to 5.3
Release notes:
https://www.mail-archive.com/bug-bash@gnu.org/msg34422.html

- Drop 902-missing-params.patch, as the issue (openwrt/packages#15006)
  no longer occurs.
- Refresh remaining patches.
- Take over package maintenance.

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-01-03 15:22:31 +02:00
Josef Schlehofer f350e2c2cb bash: update to version 5.2.15
Refreshed patches

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2023-01-20 04:47:30 +01:00
Rosen Penev 069f1a80b6 bash: update to 5.1.8
Switch to AUTORELEASE for simplicity.

Remove upstream backports.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-21 00:15:52 -07:00
Philip Prindeville fd9012836a bash: fixing missing PARAMS() macro in strtod.c
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2021-04-03 18:57:09 -07:00
Huangbin Zhan 326315425a bash: import upstream patches for 5.1
Source:
https://ftp.gnu.org/gnu/bash/bash-5.1-patches/bash51-001
https://ftp.gnu.org/gnu/bash/bash-5.1-patches/bash51-002
https://ftp.gnu.org/gnu/bash/bash-5.1-patches/bash51-003
https://ftp.gnu.org/gnu/bash/bash-5.1-patches/bash51-004

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
2020-12-30 23:09:41 +08:00
Rosen Penev fd0188383f bash: update to 5.1
Remove upstreamed patches.

Refresh others.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-08 16:57:38 -08:00
Jeffery To 1929baac6d bash: Enable system-wide .bashrc file, source /etc/shinit
This enables a system-wide .bashrc file (/etc/bash.bashrc), as well as
some other options related to startup files, and sources /etc/shinit for
interactive shells.

Fixes https://bugs.openwrt.org/index.php?do=details&task_id=3019.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 04:38:24 +08:00
Jeffery To dc5f2df6a4 bash: Import upstream patches
Source:
https://ftp.gnu.org/gnu/bash/bash-5.0-patches/
(bash50-003 to bash50-017)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 04:38:24 +08:00
Daniel Engberg aa1d7d134c utils/bash: Import upstream patches for 5.0
Source:
ftp://ftp.gnu.org/gnu/bash/bash-5.0-patches/bash50-001
ftp://ftp.gnu.org/gnu/bash/bash-5.0-patches/bash50-002

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2019-02-09 13:41:43 +00:00
Daniel Engberg c48a405b23 utils/bash: Update to 5.0
Update bash to 5.0

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2019-01-24 20:20:53 +08:00
Yousong Zhou 0cb460a2a7 bash: style and doc fix
The patch is about job control in general instead of the builtin jobs
command

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 20:15:55 +08:00
Daniel Engberg 3f414a0a67 utils/bash: Update to 4.4.18
- Update bash to 4.4.18
 - Enable PKG_CHECK_FORMAT_SECURITY
 - Use shared libreadline
 - Enable job control

Fixes #5796, Closes #5858

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 15:47:07 +08:00
Iván Atienza 885ddf9b68 bash: version bump to 4.4.12
Signed-off-by: Iván Atienza <gentoo.power@gmail.com>
2017-09-15 16:11:57 +02:00
Marcel Denia dd1e65bedf bash: Update to 4.3.42
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-08-25 21:27:55 +02:00
Marcel Denia 5fa4fc4884 bash: Update to 4.3.39
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-05-22 07:16:26 +02:00
Marcel Denia 25e6fcbb85 bash: Update to 4.3.33
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-02-16 17:01:01 +01:00
Marcel Denia 1d512d2843 bash: Update to 4.3.30
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-10-07 06:26:18 +02:00
Jo-Philipp Wich f195dcf02c bash: Update to 4.3.26
* Fixes CVE-2014-7169.
 * Fix two out-of-bounds array accesses in the bash parser
 * Add prefix & suffix to variables containing exported functions

Ref: http://seclists.org/oss-sec/2014/q3/712

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-09-26 11:33:41 +02:00
Marcel Denia cf96901360 bash: Update to 4.3.25
Fixes CVE-2014-6271.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-09-24 21:18:18 +02:00
Marcel Denia 14088effd4 bash: Update to 4.3.24
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-09-03 21:34:24 +02:00
Marcel Denia bdbd767fac bash: Add upstream patches
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-09 01:28:35 +02:00
Marcel Denia f73ee0d75d bash: Refresh patches
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-09 01:28:34 +02:00
Marcel Denia 38862cb6db bash: Remove old upstream patches
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-09 01:28:34 +02:00
Marcel Denia f9288fa550 Import oldpackages/bash
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-09 01:28:34 +02:00