fix for %P in TIMEFORMAT; make updating variables that aren't subject to allexport smoother; fix spurious compiler warning about realloc; efficiency improvement for command timing; fix issue with read builtin and failure to set terminal attributes

This commit is contained in:
Chet Ramey
2025-10-06 15:29:41 -04:00
parent 4f536430e4
commit f2f545ad7b
11 changed files with 118 additions and 80 deletions
+3 -3
View File
@@ -3166,7 +3166,7 @@ assign_value:
INVALIDATE_EXPORTSTR (entry);
optimized_assignment (entry, value, aflags);
if (mark_modified_vars)
if (mark_modified_vars && (aflags & ASS_NOEXPORT) == 0)
VSETATTR (entry, att_exported);
if (exported_p (entry))
@@ -3208,7 +3208,7 @@ assign_value:
}
}
if (mark_modified_vars)
if (mark_modified_vars && (aflags & ASS_NOEXPORT) == 0)
VSETATTR (entry, att_exported);
if (exported_p (entry))
@@ -3363,7 +3363,7 @@ bind_variable_value (SHELL_VAR *var, char *value, int aflags)
INVALIDATE_EXPORTSTR (var);
if (mark_modified_vars)
if (mark_modified_vars && (aflags & ASS_NOEXPORT) == 0)
VSETATTR (var, att_exported);
if (exported_p (var))