Use -n instead of -h for compatibility between BSD and Linux
implementations