Sonoma’s “cp -l” Won’t Create Links
I ran into this while working on a Keyboard Maestro macro that creates hard links: The macOS version of
cp
won’t create links, at least not in Sonoma. In Ventura, it works even though it throws the same error as it does in Sonoma.[…]
I have filed this bug as FB13255408 with Apple, and I’m hopeful they fix it soon. There is a workaround, obviously: Use
ln
instead. This works fine for individual hard links, but usingcp
to quickly copy an entire folder as hard links is a nicer implementation.