I want to source files in a directory, I tried to make it work with this loop :
ls -1 $HOME/.bash_complete.d |while read f; do
    . $HOME/.bash_complete.d/$f
done
though the scripts seem to be executed, any export foo=bar in those are not present in env
Its for counterpart below :
for f in $HOME/.bash_complete.d/*; do
    . $f
done
works as I expect. Is there a scope involved ?
 
     
     
    