Why this command works:
sudo rm -rf ${server_tomcatHomeDir}temp/*
While the same, but with quoted arg, doesn't work:
sudo rm -rf "${server_tomcatHomeDir}temp/*"
It might be related only to quotes, but why this command works even with quoted args:
sudo cp "$HOME/${artifact}" "${server_tomcatHomeDir}/webapps/${webapp}"
I can't understand. Can anyone clarify?
I just want to use quotes in the first command to prevent globbing and word splitting.