News for hackers. Stuff that matters.
Re:The Unexpected Importance of the Trailing Slash by adrian_b on Saturday April 09, 2022 @04:56AM (#30966339)
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.

There are no comments on this comment yet.