fix for race condition with process creation and terminal process group; changes to printf builtin for multibyte characters

This commit is contained in:
Chet Ramey
2023-09-11 10:09:22 -04:00
parent aab2c1fb1d
commit 32826f717d
19 changed files with 9543 additions and 9559 deletions
+16
View File
@@ -7563,3 +7563,19 @@ eval.c
- parse_command: don't run pending traps if we're parsing a command
substitution
From a report from Emanuele Torre <torreemanuele6@gmail.com>
9/8
---
jobs.c
- stop_pipeline: don't have the parent set the terminal pgrp; rely on
child processes to do it to avoid potential race conditions.
From a discussion beginning at
https://lists.gnu.org/archive/html/bug-bash/2023-08/msg00087.html
builtins/printf.def
- bexpand: when parsing the string to be expanded, consume entire
multibyte characters at a time, in case their encoding includes a
'\\'
- printf_builtin: when parsing the format string, consume entire
multibyte characters at a time unless they begin with '\\' or '%',
to avoid characters whose encoding contains those characters