fix for dequoting words in pretty-print mode; posix mode changes for readonly/export invalid identifier errors

This commit is contained in:
Chet Ramey
2024-01-02 10:42:34 -05:00
parent aa2d23cfac
commit fa0b002927
20 changed files with 1531 additions and 1361 deletions
+10 -3
View File
@@ -8680,6 +8680,13 @@ prefix.
The @code{export} and @code{readonly} builtin commands display their
output in the format required by @sc{posix}.
@item
If the @code{export} and @code{readonly} builtin commands get an argument
that is not a valid identifier, and they are not operating on shell
functions, they return an error.
This will cause a non-interactive shell to exit because these are
special builtins.
@item
The @code{trap} builtin displays signal names without the leading
@code{SIG}.
@@ -8895,9 +8902,9 @@ Starting with bash-4.4, Bash has begun deprecating older compatibility
levels.
Eventually, the options will be removed in favor of @env{BASH_COMPAT}.
Bash-5.0 is the final version for which there will be an individual shopt
option for the previous version. Users should use @env{BASH_COMPAT}
on bash-5.0 and later versions.
Bash-5.0 was the final version for which there will be an individual shopt
option for the previous version.
Users should control the compatibility level with @env{BASH_COMPAT}.
The following table describes the behavior changes controlled by each
compatibility level setting.