Author: Stan Eisenstat
Subject: Re: [Cs323] heredoc
Date: Monday, 16 Nov 2020, 19:52:51
> Message Posted By: Unknown > > When implementing heredocs, do we need to execute each line on the > heredoc? For example, if we have: > > VALUE=1 cat << EOF > > hello: $VALUE > > LINE2 > > LINE3, printenv VALUE > > EOF > > does $VALUE and printenv VALUE get expanded before being put into a > temporary file and being made the stdin of cat? As stated in the specification: ... Moreover, the behavior of bashLT may not match bash in some cases, including: ... g. bash expands HERE documents; bashLT does not. ---Stan-PREV INDEX NEXT