6

Bash: functional difference between process substitution and here string with $( ) ?

view full story
linux-howto

http://www.linuxquestions.org – Hello :) Further to solved LQ thread Bash: how to populate a list of arbitrarily named files?, what is the functional difference between feeding a loop with process substitution and feeding it with a here string with embedded command substitution? ABSG pages: process substitution, here string and command substitution. This works Code: while IFS= read -r -d '' file do   files+=("$file") done < <(find $dir -type f -print0) but this does not work Code: while IFS= read -r -d '' file do   files+=("$file") done <<< "$(find $dir -type f -print0)" Best Charles (HowTos)