4 ms·
> I am used to behave in Linux and FreeBSD the only strange thing about rsync is that it follows _BSD_ syntax https://wiki.archlinux.org/title/rsync#Trailing_
by xk3 3y ago
> I am used to behave in Linux and FreeBSD
the only strange thing about rsync is that it follows _BSD_ syntax
https://wiki.archlinux.org/title/rsync#Trailing_slash_caveat https://wiki.archlinux.org/title/rsync#Trailing_slash_caveat
- deleted 3y ago[deleted]
- codetrotter 3y agoWeird! I never noticed that. Indeed, it does! cd "$( mktemp -d )" mkdir a b c touch a/f1 a/f2 a/f3 cp -r a/ b/ ls b Resulting content of directory b on one my FreeBSD machines f1 f2 f3 Guess I usually 1. Don’t use cp -r so often, and 2. When I do use cp -r apparently I don’t put a trailing slash Cause I only ever had problems when trying to use rsync, not when using cp or mv :S