Use -R for cp. -r is deprecated since the mid 80s.