On 10/6/14, 3:38 PM, Linda Walsh wrote: > Greg Wooledge wrote: >> On Mon, Oct 06, 2014 at 12:14:57PM -0700, Linda Walsh wrote: >>> done <<<"$(get_net_IFnames_hwaddrs)" >> >>> Where am I using a HERE doc? >> >> <<< and << both create temporary files. > > > According to Chet , only way to do a multi-var assignment in bash is > > read a b c d <<<$(echo ${array[@]}) > > Forcing a simple assignment into using a tmp file seems Machiavellian -- > as it does exactly the thing the user is trying to avoid through > unexpected means.
Don't mix a capability -- shorthand to provide arbitrary data on stdin to the shell or a different process -- with your use of it. You've chosen to use this mechanism for assignment rather than something less baroque, but that doesn't mean the capability is any less general. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/