The sh -c behaviour makes sense for the ssh command at least. It is entirely the wrong thing to do in a remote copy command.
-
-
Replying to @sortiecat
The scp manual page has the *critical bug* of not documenting remote file names are executed as shell commands.
1 reply 0 retweets 0 likes -
Replying to @sortiecat
Bad design is forgiveable of course, and it's probably for rcp compatibility, but dangerously undocumented features less so.
1 reply 0 retweets 0 likes -
Replying to @sortiecat
The scp, sftp, rsync commands have never quite sit perfectly with me, lacking features, not quite executed correctly, minor semantic issues.
1 reply 0 retweets 0 likes -
Replying to @sortiecat
sftp is cool but it seems to lack some features and kind of sucked to script. It annoys me scp has this really bad special case.
1 reply 0 retweets 0 likes -
Replying to @sortiecat
Down the road I might cook up another front end for file transport over ssh. I quite like ssh. I like to do programs that fit my taste.
2 replies 0 retweets 0 likes -
Replying to @sortiecat
I'm a bit surprised OpenBSD's excellent documentation missed this. I should confirm it's not just my broken Linux systems and send a patch.
1 reply 0 retweets 1 like -
Replying to @sortiecat
scp(1) is a very minimal wrapper around ssh(1) compared to sftp(1), which is an actual subsystem protocol. But yes, perhaps docs need love..
1 reply 1 retweet 2 likes -
Replying to @canadianbryan @sortiecat
There was GSoC work done to make sftp(1) usage syntax nicer so people would switch to it from scp.. http://marc.info/?l=openbsd-cvs&m=125003603523206&w=2 …
1 reply 1 retweet 0 likes -
Replying to @canadianbryan
Indeed. scp should be replaced in the long term in something with better semantics. Uncertain if sftp is the right replacement.
3 replies 0 retweets 0 likes
I believe the replacement is called rsync.
-
-
Replying to @RichFelker @canadianbryan
Yet to really look deeply into that, but I get an overengineered vibe and it doesn't default to ssh. I'll rtfm about it tomorrow. :)
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.