fix for parameter expansions that contain valid and invalid expansions; avoid stale readdir() value in getcwd replacement; check libtinfow for termcap functions; fix to propagate exit status of builtins run in subshells back to calling shell

This commit is contained in:
Chet Ramey
2025-08-04 10:18:32 -04:00
parent c1d9c08853
commit e9053f2a3a
11 changed files with 183 additions and 41 deletions
-2
View File
@@ -5536,10 +5536,8 @@ execute_subshell_builtin_or_function (WORD_LIST *words, REDIRECT *redirects,
if (result == EXITPROG || result == EXITBLTIN)
subshell_exit (last_command_exit_value);
#if 0 /* TAG:bash-5.4 https://savannah.gnu.org/support/?109840 6/5/2025 */
else if (result == ERREXIT)
subshell_exit (last_command_exit_value ? last_command_exit_value : EXECUTION_FAILURE);
#endif
else if (result)
subshell_exit (EXECUTION_FAILURE);
else if (funcvalue)