Please sign in to comment.
Don't quote ~[username]/ in scp paths.
In order for tilde expansion to work, a leading tilde and any subsequent alphanumeric characters up to and including the first slash must not be quoted. This commit changes the quoting algorithm to forego quoting the initial tilde (if present), any subsequent alphanumerics, and the first slash. If the first character is not a tilde then there is no change. PATH BEFORE AFTER ~ '~' ~ ~user '~user' ~user foo~bar 'foo~bar' 'foo~bar' ~/foo '~/foo' ~/'foo' ~ foo bar '~ foo bar' ~' foo bar'
- Loading branch information...