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

Actually a trailing slash is significant not only in rsync, but in most other command-line utilities.

Unfortunately, rsync lacks a helpful option like the "--strip-trailing-slashes" of GNU cp and mv.

I never use bare cp or mv, but only aliases which replace their undesirable default options with other more useful options, including "--strip-trailing-slashes", which makes the presence or absence of a trailing slash irrelevant.



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

Search: