mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-01 17:39:56 +02:00
fix cosmetic error when printing if commands containing here-documents in the body; compiling -DSTRICT_POSIX now forces posix-mode shells to expand redirections before assignment statements preceding simple commands
This commit is contained in:
@@ -387,7 +387,13 @@ default even when in POSIX mode. Specifically:
|
||||
entries if ‘FCEDIT’ is unset, rather than defaulting directly to
|
||||
‘ed’. ‘fc’ uses ‘ed’ if ‘EDITOR’ is unset.
|
||||
|
||||
3. As noted above, Bash requires the ‘xpg_echo’ option to be enabled
|
||||
3. Bash does not perform redirections before expanding variable
|
||||
assignments preceding a simple command; it does not allow the
|
||||
redirections access to the results of the variable assignments, but
|
||||
any side effects of expanding the redirections take place first.
|
||||
If compiled in strict posix mode, Bash performs redirections first.
|
||||
|
||||
4. As noted above, Bash requires the ‘xpg_echo’ option to be enabled
|
||||
for the ‘echo’ builtin to be fully conformant.
|
||||
|
||||
Bash can be configured to be POSIX-conformant by default, by specifying
|
||||
|
||||
Reference in New Issue
Block a user