Why do these rsync filter args fail in bash when passed in array?

Published: 8/11/2019
Why do these rsync filter args fail in bash when passed in array?
Source: UNIX.STACKEXCHANGE.COM

Why does this rsync command work when I give it literally but not when I create it from variables? Here are the variables - first the options I'm passing to rysnc, as an array: $ echo "${options[@]}" -av --prune-empty-dirs -f "- *.flac" -f "- *.WMA" -f "- *.wma" -f "- *.ogg" -f "- *.mp4" -f "- *.m4a" -f "- *.webm" -f "- *.wav" -f "- *.ape" -f "- *.zip" -f "- *.rar" $ echo

Read more
Related news
Comment
FACEBOOK