You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Morbig fails with "Failure: Unsupported expansion in here document delimiter" on the following
script
cat << $x
kgjlkfdjgkdflkg
$x
bash accepts it both with with and without --posix, and dash gives an error.
I think that the behaviour of bash is correct since nothing in the standard says that the delimiter word may not contain variables, subshells, or globs. However these are not subject to expansion, as stated in 2.7.4.
The text was updated successfully, but these errors were encountered:
Morbig fails with "Failure: Unsupported expansion in here document delimiter" on the following
script
bash accepts it both with with and without --posix, and dash gives an error.
I think that the behaviour of bash is correct since nothing in the standard says that the delimiter word may not contain variables, subshells, or globs. However these are not subject to expansion, as stated in 2.7.4.
The text was updated successfully, but these errors were encountered: