News for hackers. Stuff that matters.
Re:Deprecating scp by recursive on Friday November 06, 2020 @11:54AM (#25009044)
I've never used rcp or rsync, but your final explanation provides no illumination for me. "foo/bar/" and "foo/bar" are both directories named "bar". Copying a thing puts that thing on the destination side. It still doesn't sound like there's a difference.
Re:Deprecating scp by hanche on Friday November 06, 2020 @02:24PM (#25010329)
I think it makes more sense to say that, for rsync, "foo/bar/" names the contents of the directory, while "foo/bar" names the directory itself. You could perhaps think of "foo/bar/" as a shortcut for "foo/bar/*", except that it matches hidden files as well.
Re:Deprecating scp by dcassett on Friday November 06, 2020 @12:40PM (#25009443)
foo/bar/ and foo/bar are not the same if bar is a symbolic link. You can see the difference using 'ls -l'
Re:Deprecating scp by hanche on Friday November 06, 2020 @02:25PM (#25010347)
My understanding is that "foo/bar/" is considered a short form of "foo/bar/.". Interpreting that forces following the symlink.