Are you sure you are using (for example) the "real" mv and not alias or something? I use a SunOS every day where rm
is aliased to rm -i
to prevent accidents, and to get past the interactive questions (which do pop up even with force switch) I have to use full path; in your case try
/bin/mv -r /home/user/foo/ /var/www/
and see if it helps. If it doesn't, then it's obviously something else.