On Thursday 14 February 2008 23:13, David C. Rankin wrote:
...
Stumbling around, it seems if you include AFS='\n' it will keep the loop from breaking on spaces by specifying that it only break on newlines and not spaces. So filenames with spaces (all my wife's digital pictures are) this is the only thing I have found to work without extensive character and replacing spaces with '_':
It's "IFS" not "AFS" and you need the "in" keyword as David Bolt mentioned:
IFS='\n' for i in $list; do
Telling the loop not to break on spaces with AFS seems to work like a charm. Are there any better ways? echo "i = $1" done ... David C. Rankin
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org