The following commands behaves different between Linux and Mac:
mkdir tmp ln -s tmp symlink rm -rf symlink/ On Linux, the content of tmp folder is deleted but the folder itself remains, while on Mac the folder is deleted as well, breaking the symlink.
Is there a way to have a command that behaves like Linux on Mac as well?