I was curious why the variable in my list doesn't expand when I perform a foreach loop...
set DIR_FILES "./files"
# HDL Library Files lists
set file_list {
"$DIR_FILES/aa.txt" \
"$DIR_FILES/bb.txt" \
"$DIR_FILES/cc.txt" \
}
foreach library $file_list {
puts ">>> ($library)";
}
Output is this:
>>> (./files/aa.txt)
>>> (./files/bb.txt)
>>> (./files/cc.txt)
Instead of this:
Output is this:
>>> ($DIR_FILES/aa.txt)
>>> ($DIR_FILES/bb.txt)
>>> ($DIR_FILES/cc.txt)