The point of my email was that if [ `uname -s` = 'Darwin' ]; then ... allows for a clean branch between the (new here) macOS behaviour and (old, prior) behavior removing all concerns about 'portability' (per the Subject:). You missed 100% of that. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org