Re: Whitespace problem with bash script for Icedove
Jimmy Wu wrote:
> 1. Just use the shell's globbing - it was meant for this purpose -
> instead of assigning a glob to a variable. Glob expansions can be
> iterated over in loops correctly and safely. Expanded strings are
> much more tricky to get right (if it is even possible) and less safe
> when you don't.
> FILES="/home/bill/.../Local Folders/2-Personal.sbd"
> for i in "$FILES"/*
> note the glob is outside the quotes
I like this solution better than the one I had suggested.