On Tue, 19 Jul 2022 02:40:14 +0000
> Thank you very much for your reply.
> 
> >it seems your application is calling scp with " around the arguments, so, 
> >scp try to copy "/tmp/a" instead of just /tmp/a.
> 
> We analyzed our application again, internally, calling scp command is as 
> follows.
> 
>  <Cygwinのインストールディレクトリ>\bin\scp.exe "/cygdrive//C/test/a" 
> "root"@ホスト名:"\"/tmp/a\""
> 
> The scp command above runs successfully with the old version Cygwin(3.2.0),
> but not with the the latest version Cygwin(3.3.5). 
> 
> <result of execution on command prompt>
> =============================================
> ●the old version Cygwin(3.2.0)
> ---------------------------------
> C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" 
> "root"@RJEL74JP:"\"/tmp/a\""
> a                                                               100%   36KB   
> 1.3MB/s   00:00
> 
> >echo %errorlevel%
> 0
> ---------------------------------
>  →Successfully.

In my environment, your test case also fails with cygwin 3.2.0.

C:\Users\yano>\cygwin64\bin\uname -a
CYGWIN_NT-10.0-19044 HP-Z230 3.2.0-340.x86_64 2021-03-29 08:42 UTC x86_64 Cygwin

C:\Users\yano>\cygwin64\bin\scp "/home/yano/a" "yano"@server:"\"/tmp/a\""
/usr/bin/scp: dest open ""/tmp/a"": No such file or directory
/usr/bin/scp: failed to upload file /tmp/a to "/tmp/a"

The behaviour difference seems not due to cygwin version.

-- 
Takashi Yano <takashi.y...@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to