My backup script does for f in $(ls *.csv); do cp $f $dest; done. It worked for months, then failed on a file called sensor log 2026.csv with cannot stat 'sensor'. The file exists and ls shows it correctly.
When exactly does Bash split a value into several words, and what is the correct way to loop over files and pass them to commands?




