unconditionally define PGRP_PIPE; fix wait in funsubs; fix REPLY as nameref in varsub; fix crash with parse errors in compound assignments

This commit is contained in:
Chet Ramey
2024-01-14 15:38:36 -05:00
parent 584a2b4c9e
commit f2fdb5e313
14 changed files with 125 additions and 154 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ hash_builtin (WORD_LIST *list)
if (list == 0 && (delete || list_targets))
{
sh_needarg (delete ? "-d" : "-t");
return (EXECUTION_FAILURE);
return (sh_chkwrite (EXECUTION_FAILURE));
}
/* It's an error to specify a pathname to hash to, but no name to hash. */
@@ -299,5 +299,5 @@ list_hashed_filename_targets (WORD_LIST *list, int fmt)
free (target);
}
return (all_found ? EXECUTION_SUCCESS : EXECUTION_FAILURE);
return (sh_chkwrite (all_found ? EXECUTION_SUCCESS : EXECUTION_FAILURE));
}
+1 -1
View File
@@ -437,7 +437,7 @@ ulimit_builtin (WORD_LIST *list)
if (ulimit_internal (cmdlist[c].cmd, cmdlist[c].arg, mode, ncmd > 1) == EXECUTION_FAILURE)
return (EXECUTION_FAILURE);
return (EXECUTION_SUCCESS);
return (sh_chkwrite (EXECUTION_SUCCESS));
}
static int