file name handling "bug" in scp?

Darren Tucker dtucker at zip.com.au
Tue Jul 26 11:49:54 EST 2005


Evaldo Gardenali wrote:
> I think I found a small filename handling issue in scp:
> 
> evaldo at winston:~$ scp evaldo at 127.0.0.1:test-\`whoami\`-test .
> Password:
> scp: test-evaldo-test: No such file or directory
> evaldo at winston:~$ scp evaldo at 127.0.0.1:test-\`echo\ foo\`-test .
> Password:
> scp: test-foo-test: No such file or directory
> evaldo at winston:~$

I don't follow, what did you expect?  Do the files "test-evaldo-test" 
and "test-foo-test" exist?

It behaves consistly with what I'd expect (remember: the shell expansion 
occurs twice: once by the client's shell and once by the server's).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list