fix issue with redirections to bash input file descriptor; new minimal chmod builtin; posix mode change for kill builtin return status; perform additional validation on brace expansion sequence expressions

This commit is contained in:
Chet Ramey
2025-02-12 11:18:16 -05:00
parent 3cfc255efe
commit c3ca11424d
13 changed files with 403 additions and 44 deletions
+1 -1
View File
@@ -4202,7 +4202,7 @@ execute_null_command (REDIRECT *redirects, int pipe_in, int pipe_out, int async)
{
forcefork += rd->rflags & REDIR_VARASSIGN;
/* Safety */
forcefork += (rd->redirector.dest == 0 || fd_is_bash_input (rd->redirector.dest)) && (INPUT_REDIRECT (rd->instruction) || TRANSLATE_REDIRECT (rd->instruction) || rd->instruction == r_close_this);
forcefork += (rd->redirector.dest == 0 || fd_is_bash_input (rd->redirector.dest));
}
if (forcefork || pipe_in != NO_PIPE || pipe_out != NO_PIPE || async)