- Add upstream patches
* bash52-037
Fix the case where text to be completed from the line buffer (quoted) is
compared to the common prefix of the possible matches (unquoted) and the
quoting makes the former appear to be longer than the latter. Readline
assumes the match doesn't add any characters to the word and doesn't display
multiple matches.
* bash52-036
When readline is accumulating bytes until it reads a complete multibyte
character, reading a byte that makes the multibyte character invalid can
result in discarding the bytes in the partial character.
* bash52-035
There are systems that supply one of select or pselect, but not both.
* bash52-034
If we parse a compound assignment during an alias expansion, it's possible
to have the current input string popped out from underneath the parse. In
this case, we should not restore the input we were using when we began to
parse the compound assignment.
* bash52-033
A typo in the autoconf test for strtold causes false negatives for strtold
being available and working when compiled with gcc-14.
- Port patch bash-3.2-printf.patch to fit change in bash52-033
OBS-URL: https://build.opensuse.org/request/show/1203319
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=193
- Add upstream patches
* bash52-027
The configure test for the presence of strtoimax(3) is inverted.
* bash52-028
A DEBUG trap in an asynchronous process can steal the controlling terminal
away from the calling shell, causing it to exit.
* bash52-030
`wait -n' can fail to return some jobs if they exit due to signals the shell
does not report to the user.
* bash52-031
There is a memory leak in the code that implements the optimized $(<file)
expansion for some code paths.
* bash52-032
When printing functions containing coprocesses, the displayed coproc command
has the word COPROC inserted unconditionally, resulting in function bodies
that cannot be re-read as input.
OBS-URL: https://build.opensuse.org/request/show/1194674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=192
- Add upstream patches
* bash52-022
It's possible for readline to try to zero out a line that's not
null-terminated, leading to a memory fault.
* bash52-023
Running `local -' multiple times in a shell function would
overwrite the original saved set of options.
* bash52-024
Fix bug where associative array compound assignment would not
expand tildes in values.
* bash52-025
Make sure a subshell checks for and handles any terminating
signals before exiting (which might have arrived after the
command completed) so the parent and any EXIT trap will see
the correct value for $?.
OBS-URL: https://build.opensuse.org/request/show/1139152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=189
- Declare token YYEOF to be able to support older bison versions
as well
- Be sure to have a usable bison installed at build time
- Add upstream patches
* bash52-021
There is an off-by-one error that causes command substitutions to fail when
they appear in a word expansion inside a here-document.
* bash52-020
The parser did not allow `time' to appear as the first reserved word in a
command substitution.
* bash52-019
There are some cases where the shell reaped a background (asynchronous) job
and would incorrectly try to set the terminal's process group back to the
shell's. In these cases it never set the terminal process group to that
jobs's process group initially, so resetting it is incorrect.
* bash52-018
There are two problems with returning tokens to yyparse() when the shell
encounters a syntax error or when it reads EOF.
When reading a WORD token, the parser has to return the correct value to
yyparse. Previous versions returned a value < 0, which the bash parser
translated into YYERRCODE for bison, and in newer versions of bison, the
appropriate reset actions didn't happen. We should return YYUNDEF, which
bison uses for `invalid token'. Since we can return a token < 0 for both
invalid tokens and EOF, the bash tokenizer needs to differentiate between
those two cases.
* bash52-017
In certain cases, using the `.' builtin in a subshell would optimize away
the rest of the commands in the subshell.
OBS-URL: https://build.opensuse.org/request/show/1126551
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=188
- Add upstream patches
* bash52-013
Bash can leak memory when referencing a non-existent associative
array element.
* bash52-014
Bash defers processing additional terminating signals when running
the EXIT trap while exiting due to a terminating signal. This
patch allows the new terminating signal to kill the shell immediately.
* bash52-015
There are several cases where bash is too aggressive when optimizing
out forks in subshells. For example, `eval' and traps should never
be optimized.
OBS-URL: https://build.opensuse.org/request/show/1043053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=186
- Add upstream patches
* bash52-010
Bash-5.2 checks the first 128 characters of an executable file that execve()
refuses to execute to see whether it's a binary file before trying to
execute it as a shell script. This defeats some previously-supported use
cases like "self-executing" jar files or "self-uncompressing" scripts.
* bash52-011
Using timeouts and readline editing with the `read' builtin (read -e -t) can
leave the readline timeout enabled, potentially resulting in an erroneous
timeout on the next call.
* bash52-012
When running in bash compatibility mode, nested command substitutions can
leave the `extglob' option enabled.
OBS-URL: https://build.opensuse.org/request/show/1038668
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=185
- Add upstream patches
* bash52-003
Command substitutions need to preserve newlines instead of replacing them
with semicolons, especially in the presence of multiple here-documents.
* bash52-004
Bash needs to keep better track of nested brace expansions to avoid problems
with quoting and POSIX semantics.
* bash52-005
Null pattern substitution replacement strings can cause a crash.
* bash52-006
In interactive shells, interrupting the shell while entering a command
substitution can inhibit alias expansion.
* bash52-007
This patch fixes several problems with alias expansion inside command
substitutions when in POSIX mode.
* bash52-008
Array subscript expansion can inappropriately quote brackets if the expression
contains < or >.
* bash52-009
Bash arithmetic expansion should allow `@' and `*' to be used as associative
array keys in expressions.
OBS-URL: https://build.opensuse.org/request/show/1035012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=184
- Add upstream patches
* bash52-001
Expanding unset arrays in an arithmetic context can cause a
segmentation fault.
* bash52-002
Starting bash with an invalid locale specification for
LC_ALL/LANG/LC_CTYPE can cause the shell to crash.
- Do not run checks in parallel as it eats memory, a lot of memory
- Disable alternate array implementation as it eats a lot of memory
- Update to final bash 5.2
a. When replacing a history entry, make sure the existing entry has a non-NULL
timestamp before copying it; it may have been added by the application, not
the history library.
- Modernize run-tests
- add checks
- Enable parallel builds by splitting clean and all at make time
- Update to bash 5.2 rc4
Pos. aa is now enabled by default.
m. Readline now checks for changes to locale settings (LC_ALL/LC_CTYPE/LANG)
each time it is called, and modifies the appropriate locale-specific display
- Port patches
* bash-2.03-manual.patch
* bash-5.2.dif
- Update to bash 5.2 rc2
gg. Since there is no `declare -' equivalent of `local -', make sure to use
OBS-URL: https://build.opensuse.org/request/show/1008386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=180
- Enable parallel builds by slpitting clean and all at make time
(Thanks to Christopher Yeleighton)
- Do not copy more than 1 byte for \(aq becoming a "'" in
quotes-man2html.patch
- Small change in quotes-man2html.patch
* Use a simple "'" aka quote instead of "′" for "\(aq"
- Add patch quotes-man2html.patch
* Fix boo#1203091 -- BASH(1) Manual Page: Unprocessed macro aq
OBS-URL: https://build.opensuse.org/request/show/1004899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=179
- Update bash 5.1 to patch level 12
* Add official patch bash51-009
The bash malloc implementation of malloc_usable_size() does not follow the
specification. This can cause library functions that use it to overwrite
memory bounds checking.
* Add official patch bash51-010
If `wait -n' is interrupted by a trapped signal other than SIGINT, it does
not completely clean up state, and that can prevent subsequent calls to
`wait -n' from working correctly.
* Add official patch bash51-011
When reading a compound assignment, and running it through the parser to
split it into words, we need to save and restore any alias we're currently
expanding.
* Add official patch bash51-012
There is a possible race condition that arises when a child process receives
a signal trapped by the parent before it can reset the signal dispositions.
The child process is not supposed to trap the signal in this circumstance.
- Using package bash-sh instead of the update-alternative
mechanism.
OBS-URL: https://build.opensuse.org/request/show/932216
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=173
- Add official patch bash51-005
* Fix two memory leaks when assigning arrays using compound assignment syntax.
- Add official patch bash51-006
* Make sure child processes forked to run command substitutions are in the
proper process group.
- Add official patch bash51-007
* The code to check readline versions in an inputrc file had the sense of the
comparisons reversed.
- Add official patch bash51-008
* Process substitution FIFOs opened by child processes as targets of redirections
were not removed appropriately, leaving remnants in the file system.
OBS-URL: https://build.opensuse.org/request/show/890765
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=169
- Update to final bash 5.1
* Which is mainly the last rc3 veresion
- Add official patch bash51-001
There is a missing dependency on a constructed file, which can cause highly
parellel builds to fail.
- Add official patch bash51-002
If there are no jobs, and the `-n' and `-p' options are both supplied to
`wait', bash can assign a value to the variable name specified with `-p'
instead of leaving it unset.
- Add official patch bash51-003
Bash does not put a command substitution process that is started to perform an
expansion in a child process into the right process group where it can receive
keyboard-generated signals.
- Add official patch bash51-004
If a key-value compound array assignment to an associative array is supplied
as an assignment statement argument to the `declare' command that declares the
array, the assignment doesn't perform the correct word expansions.
This patch makes key-value assignment and subscript assignment perform the
same expansions when they're supplied as an argument to `declare'.
- Update to bash 5.1 rc3
* The `assoc_expand_once' option now affects the evaluation of the -v primary
to test and the [[ compound command.
- Update to bash 5.1 rc2
* Process substitutions started from an interactive shell no longer have their
standard input implicitly redirected from /dev/null.
* Fixed an issue with setting the SIGINT trap handler in an interactive shell
when temporarily running $PROMPT_COMMAND non-interactively.
OBS-URL: https://build.opensuse.org/request/show/862386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=168
- Add official patch bash50-012
When using previous-history to go back beyond the beginning of the history list,
it's possible to move to an incorrect partial line.
- Add official patch bash50-013
Reading history entries with timestamps can result in history entries joined
by linefeeds.
- Add official patch bash50-014
If the current line is empty, using the emacs C-xC-e binding to enter the
editor will edit the previous command instead of the current (empty) one.
- Add official patch bash50-015
If alias expansion is enabled when processing the command argument to the
`-c' option, an alias is defined in that command, and the command ends with
the invocation of that alias, the shell's command parser can prematurely
terminate before the entire command is executed.
- Add official patch bash50-016
Bash waits too long to reap /dev/fd process substitutions used as redirections
with loops and group commands, which can lead to file descriptor exhaustion.
OBS-URL: https://build.opensuse.org/request/show/774145
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=160
- Add official patch bash50-004
* In bash-5.0, the `wait' builtin without arguments waits for all children of the
shell. This includes children it `inherited' at shell invocation time. This
patch modifies the behavior to not wait for these inherited children, some
of which might be long-lived.
- Add official patch bash50-005
* In certain cases, bash optimizes out a fork() call too early and prevents
traps from running.
- Add official patch bash50-006
* Bash-5.0 did not build successfully if SYSLOG_HISTORY was defined without
also defining SYSLOG_SHOPT.
- Add official patch bash50-007
* Running `exec' when job control was disabled, even temporarily, but after it
had been initialized, could leave the terminal in the wrong process group for
the executed process.
OBS-URL: https://build.opensuse.org/request/show/697366
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=155
- Update temporary patch from upstream to make sed testsuite
work again
- Requires(postun) -> Requires(preun)
- Do not link /bin/sh as slave alternative to /usr/bin/sh
- Add temporary patch from upstream to fix boo#1127700
- Refine and harden update-alternatives work flow
- Move header and Makefile from bash-loadables to bash-devel
- Make update-alternatives work flawless
- Put "sh" under control of update-alternatives
OBS-URL: https://build.opensuse.org/request/show/683701
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=151
- Update to bash 5.0 (final)
a. Tilde expansion isn't performed on indexed array subscripts, even for
backwards compatibility.
b. The shell doesn't exit in posix mode if the eval builtin gets a parse
error when run by the command builtin.
c. Fixed a bug that caused a shell comment in an alias to not find the end
of the alias properly.
d. Reverted a change from April, 2018 that caused strings containing
backslashes to be flagged as glob patterns.
- Modify patches
* bash-2.03-manual.patch
* bash-4.3-loadables.dif
* bash-5.0.dif
- Update to bash 5.0 rc1
a. Fix to initial word completion detection code.
b. Fixed a bug that caused issues with assignment statements containing ^A in
the value assigned when IFS contains ^A.
c. Added a fallback to fnmatch() when strcoll can't correctly deal with
bracket expression character equivalence classes.
d. Fixed a bug that caused $BASH_COMMAND to contain the trap handler command
when running a trap handler containing [[ or (( commands.
e. Fixed a bug that caused nameref assignments in the temporary environment
to potentially create variables with invalid names.
f. Fixed a bug that caused `local -' to turn off alias expansion in scripts.
g. Fixed a parser issue with a command string containing EOF after an invalid
command as an argument to a special builtin not causing a posix-mode shell
to exit.
h. Made a slight change to the FNV-1 string hash algorithm used for associative
arrays (corrected the initial seed).
OBS-URL: https://build.opensuse.org/request/show/664075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=149
- Make sure that correct readline-devel version is used (current 7.0)
- Correct documentation path
- Due package split removed patches (for the bots)
* readline-6.2-xmalloc.dif
* readline-6.2-endpw.dif
* readline-6.3-destdir.patch
* readline-6.2-metamode.patch
* readline-7.0.dif
* readline-6.3-input.dif
* readline-5.2-conf.patch
* readline-6.3-rltrace.patch
- Split readline off into its own package
OBS-URL: https://build.opensuse.org/request/show/587961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=145
- Add patches 13-18 to bash-4.4-patches.tar.bz2
* 13: If a here-document contains a command substitution, the
command substitution can get access to the file descriptor used
to write the here-document.
* 14: Under some circumstances, functions that return via the
`return' builtin do not clean up memory they allocated to keep
track of FIFOs.
* 15: Process substitution can leak internal quoting to the
parser in the invoked subshell.
* 16: Bash can perform trap processing while reading command
substitution output instead of waiting until the command
completes.
* 17: There is a memory leak when `read -e' is used to read a
line using readline.
* 18: Under certain circumstances (e.g., reading from /dev/zero),
read(2) will not return -1 even when interrupted by a signal.
The read builtin needs to check for signals in this case.
- partial cleanup with spec-cleaner
OBS-URL: https://build.opensuse.org/request/show/570849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=142
- Add upstream patch readline70-002 which replace old one
There is a race condition in add_history() that can be triggered by a fatal
signal arriving between the time the history length is updated and the time
the history list update is completed. A later attempt to reference an
invalid history entry can cause a crash.
- Add upstream patch readline70-003
Readline-7.0 uses pselect(2) to allow readline to handle signals that do not
interrupt read(2), such as SIGALRM, before reading another character. The
signal mask used in the pselect call did not take into account signals the
calling application blocked before calling readline().
- Add upstream patch bash44-006
Out-of-range negative offsets to popd can cause the shell to crash
attempting to free an invalid memory block.
- Remove patch popd-offset-overflow.patch to use bash44-006
- Add upstream patch bash44-007
When performing filename completion, bash dequotes the directory
name being completed, which can result in match failures and
potential unwanted expansion.
- Duplicate bash44-007 as readline70-002 as it seems to be missed
- Add upstream patch bash44-008
Under certain circumstances, bash will evaluate arithmetic
expressions as part of reading an expression token even when
evaluation is suppressed. This happens while evaluating a
conditional expression and skipping over the failed branch of the
expression.
- Add upstream patch bash44-009
There is a race condition in add_history() that can be triggered
by a fatal signal arriving between the time the history length
is updated and the time the history list update is completed.
OBS-URL: https://build.opensuse.org/request/show/453464
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=135
- Add upstream patch bash43-034
If neither the -f nor -v options is supplied to unset, and a name argument is
found to be a function and unset, subsequent name arguments are not treated as
variables before attempting to unset a function by that name.
- Add upstream patch bash43-035
A locale with a long name can trigger a buffer overflow and core dump. This
applies on systems that do not have locale_charset in libc, are not using
GNU libiconv, and are not using the libintl that ships with bash in lib/intl.
- Add upstream patch bash43-036
When evaluating and setting integer variables, and the assignment fails to
create a variable (for example, when performing an operation on an array
variable with an invalid subscript), bash attempts to dereference a null
pointer, causing a segmentation violation.
- Add upstream patch bash43-037
If an associative array uses `@' or `*' as a subscript, `declare -p' produces
output that cannot be reused as input.
- Add upstream patch bash43-038
There are a number of instances where `time' is not recognized as a reserved
word when the shell grammar says it should be.
OBS-URL: https://build.opensuse.org/request/show/309045
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=124
- Replace patches bash-4.2-heredoc-eof-delim.patch and
bash-4.2-parse-exportfunc.patch with the official upstream
patch levels bash42-052 and bash42-053
- Replace patch bash-4.2-CVE-2014-7187.patch with upstream patch
level bash42-051
- Add patches
bash-4.2-heredoc-eof-delim.patch for bsc#898812, CVE-2014-6277:
more troubles with functions
bash-4.2-parse-exportfunc.patch for bsc#898884, CVE-2014-6278:
code execution after original 6271 fix
- Make bash-4.2-extra-import-func.patch an optional patch due
instruction
- Remove and replace patches
bash-4.2-CVE-2014-6271.patch
bash-4.2-BSC898604.patch
bash-4.2-CVE-2014-7169.patch
with bash upstream patch 48, patch 49, and patch 50
- Add patch bash-4.2-extra-import-func.patch which is based on the
BSD patch of Christos. As further enhancements the option
import-functions is mentioned in the manual page and a shopt
switch is added to enable and disable import-functions on the fly
OBS-URL: https://build.opensuse.org/request/show/254104
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=120
- Add bash upstream patch 46 to fix a problem introduced by patch
32 a problem with "$@" and arrays expanding empty positional
parameters or array elements when using substring expansion,
pattern substitution, or case modfication. The empty parameters
or array elements are removed instead of expanding to empty
strings ("").
- Add readline upstream patch 5: The readline shared library
helper script needs to be updated for Mac OS X 10.9
OBS-URL: https://build.opensuse.org/request/show/228434
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=114
- Add patch from upstream mailing list to speed up array handling
- Add patch from upstream mailing list to avoid fdleaks
- Use lsdiff to determine the depth of the leading slashes in a
patch file
- Disable workaround for bnc#382214 due bnc#806628, let's see when
the old bug will be up again.
- Update bash 4.2 to patch level 45
* When SIGCHLD is trapped, and a SIGCHLD trap handler runs when
a pending `read -t' invocation times out and generates SIGALRM,
bash can crash with a segmentation fault.
* When converting a multibyte string to a wide character string
as part of pattern matching, bash does not handle the end of
the string correctly, causing the search for the NUL to go
beyond the end of the string and reference random memory.
Depending on the contents of that memory, bash can produce
errors or crash.
* The <&n- and >&n- redirections, which move one file descriptor
to another, leave the file descriptor closed when applied to
builtins or compound commands.
- Use screen to provide a controlling terminal for running the
test suite
OBS-URL: https://build.opensuse.org/request/show/160437
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=107
- Avoid autoconf on older products
- Apply audit patch variant to readline as well as we use a shared
libreadline
- Avoid bash-devel on older products as older GNU make do not have
a realpath builtin
- Do not trigger the export of COLUMNS or LINES due enforced
checkwinsize (bnc#793536)
- Update bash 4.2 to patch level 42
* Missing I/O errors if output redirection applied to builtin
commands when the file descriptor was closed
* Process substitution incorrectly inherited a flag that
inhibited using the temporary environment for variable lookups
if it was providing the filename to a redirection.
* Compilation failed after specifying the `minimal config' option
OBS-URL: https://build.opensuse.org/request/show/147710
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=104
- Update bash 4.2 to patch level 36
* Patch 25: When used in a shell function,
`declare -g -a array=(compound assignment)' creates a local
variable instead of a global one.
* Patch 26: The `lastpipe' option does not behave correctly on
machines where the open file limit is less than 256.
* Patch 27: When the `extglob' shell option is enabled, pattern
substitution does not work correctly in the presence of
multibyte characters.
* Patch 28: When using a word expansion for which the right hand
side is evaluated, certain expansions of quoted null strings
include spurious ^? characters.
* Patch 29: Bash-4.2 tries to leave completed directory names as
the user typed them, without expanding them to a full pathname.
One effect of this is that shell variables used in pathnames
being completed (e.g., $HOME) are left unchanged, but the `$'
is quoted by readline because it is a special character to the shell.
* Patch 30: When attempting to glob strings in a multibyte locale,
and those strings contain invalid multibyte characters that cause
mbsnrtowcs to return 0, the globbing code loops infinitely.
* Patch 31: A change between bash-4.1 and bash-4.2 to prevent the
readline input hook from being called too frequently had the side
effect of causing delays when reading pasted input on systems such
as Mac OS X. This patch fixes those delays while retaining the
bash-4.2 behavior.
* Patch 32: Bash-4.2 has problems with DEL characters in the
expanded value of variables used in the same quoted string as
variables that expand to nothing.
* Patch 33: Bash uses a static buffer when expanding the /dev/fd
prefix for the test and conditional commands, among other uses,
OBS-URL: https://build.opensuse.org/request/show/127401
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=98
- Add fix from upstream mailing list to avoid crash
- use original source URLs
- Fix the fix for bug bnc#681286 to be able to avoid both a not
expanding glob as well as the infinit loop in multi byte locale
- Update bash 4.2 to patch level 10
- Add patch from upstream to avoid loosing quoted-nulls
- Add modified patch to avod endless loop in UTF-8 locale
OBS-URL: https://build.opensuse.org/request/show/74276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=79
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.