change some error messages so the format string isn't the return value from gettext(); work around macos problem with gettext() in child processes; don't try to set tty state while running a trap; don't default to trying enable -f file if the shell is restricted; note that configure now supports --enable-year2038

This commit is contained in:
Chet Ramey
2024-05-13 11:36:34 -04:00
parent 6fb61ee126
commit b3d8c8a4e7
26 changed files with 197 additions and 83 deletions
+5 -5
View File
@@ -197,25 +197,25 @@ redirection_error (REDIRECT *temp, int error, char *fn)
switch (error)
{
case AMBIGUOUS_REDIRECT:
internal_error (_("%s: ambiguous redirect"), filename);
internal_error ("%s: %s", filename, _("ambiguous redirect"));
break;
case NOCLOBBER_REDIRECT:
internal_error (_("%s: cannot overwrite existing file"), filename);
internal_error ("%s: %s", filename, _("cannot overwrite existing file"));
break;
#if defined (RESTRICTED_SHELL)
case RESTRICTED_REDIRECT:
internal_error (_("%s: restricted: cannot redirect output"), filename);
internal_error ("%s: %s", filename, _("restricted: cannot redirect output"));
break;
#endif /* RESTRICTED_SHELL */
case HEREDOC_REDIRECT:
internal_error (_("cannot create temp file for here-document: %s"), strerror (heredoc_errno));
internal_error ("%s: %s", _("cannot create temp file for here-document"), strerror (heredoc_errno));
break;
case BADVAR_REDIRECT:
internal_error (_("%s: cannot assign fd to variable"), filename);
internal_error ("%s: %s", filename, _("cannot assign fd to variable"));
break;
default: