mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-09 21:20:50 +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:
+1
-1
@@ -1052,7 +1052,7 @@ builtin_arrayref_flags (WORD_DESC *w, int baseflags)
|
||||
|
||||
# if 0
|
||||
/* This is a little sketchier but handles quoted arguments. */
|
||||
if (array_expand_once && (t = strchr (w->word, '[')) && t[strlen(t) - 1] == ']')
|
||||
if (array_expand_once && (t = strchr (w->word, '[')) && t[strlen(t) - 1] == ']')
|
||||
vflags |= VA_ONEWORD|VA_NOEXPAND;
|
||||
# endif
|
||||
|
||||
|
||||
+4
-4
@@ -29,8 +29,8 @@ Read and execute commands from FILENAME in the current shell. If the
|
||||
-p option is supplied, the PATH argument is treated as a colon-
|
||||
separated list of directories to search for FILENAME. If -p is not
|
||||
supplied, and the sourcepath shell option is enabled, 'source' searches
|
||||
$PATH to find FILENAME. If any ARGUMENTS are supplied, they become the
|
||||
positional parameters when FILENAME is executed.
|
||||
the directories in $PATH to find FILENAME. If any ARGUMENTS are supplied,
|
||||
they become the positional parameters when FILENAME is executed.
|
||||
|
||||
Exit Status:
|
||||
Returns the status of the last command executed in FILENAME; fails if
|
||||
@@ -47,8 +47,8 @@ Read and execute commands from FILENAME in the current shell. If the
|
||||
-p option is supplied, the PATH argument is treated as a colon-
|
||||
separated list of directories to search for FILENAME. If -p is not
|
||||
supplied, and the sourcepath shell option is enabled, '.' searches
|
||||
$PATH to find FILENAME. If any ARGUMENTS are supplied, they become the
|
||||
positional parameters when FILENAME is executed.
|
||||
the directories in $PATH to find FILENAME. If any ARGUMENTS are supplied,
|
||||
they become the positional parameters when FILENAME is executed.
|
||||
|
||||
Exit Status:
|
||||
Returns the status of the last command executed in FILENAME; fails if
|
||||
|
||||
Reference in New Issue
Block a user