Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Huh. You're right, and it's a WONTFIX: https://bugzilla.mindrot.org/show_bug.cgi?id=485.

I hadn't even noticed, because I tend to automatically reach for rsync instead, even for single files.



Interestingly enough that ticket is about preserving and/or following - I would be happy with ignoring so it doesn’t end up in an infinite loop - as it stands a self referencing symlink with files in the same directory will result in either your disk filling up, your inodes filling up, or a maximum bested paths error (assuming your FS has such a thing).

Edit: and until the ticket you just linked, I assumed scp and cp were intended to be close equivalents, given the whole ending in ‘cp’ thing.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: