darwin provides some parts of coreutils (or, their counterparts), some not. there must be one macos- and one linux-specific fulfilment for cat, tac etc. Reproducible: Didn't try Steps to Reproduce: 1. 2. 3.
Duping this as 58823 since they're basically the same, and the discussion is there... *** This bug has been marked as a duplicate of 58823 ***