Cygwin Support Dear Representatives 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. ●the latest version Cygwin(3.3.5) --------------------------------- C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" "root"@RJEL74JP:"\"/tmp/a\"" scp: dest open ""/tmp/a"": No such file or directory scp: failed to upload file /cygdrive//C/test/a to "/tmp/a" >echo %errorlevel% 1 --------------------------------- →Same error message as the scp command executed by our application. ============================================= (*)execution on the Cygwin Bash Shell gets the same results. Therefore, the arguments of the scp command are the same, but execution in the latest version Cygwin(3.3.5) has failed. Can you tell me the reason why the execution results are different depending on the version of Cygwin? Since the same problem occurs when execute the scp command on the command prompt or Cygwin Bash Shell, I don't think sample program is needed anymore. 以降は日本語の文章です。 ****************************************************************** Cygwinサポート ご担当様 ご協力、どうもありがとうございました。 >it seems your application is calling scp with " around the arguments, so, scp >try to copy "/tmp/a" instead of just /tmp/a. 当方のアプリケーションプログラムを再度確認して、 内部的には下記のようにscpコマンドを実行しています。 <Cygwinのインストールディレクトリ>\bin\scp.exe "/cygdrive//C/test/a" "root"@ホスト名:"\"/tmp/a\"" 上記のscpコマンドは、旧バージョン(3.2.0)のCygwinでは正常に行われていますが、 最新バージョン(3.3.5)では正常に行われていません。 <コマンドプロンプトでの実行結果> ============================================= ●旧バージョン(3.2.0)のCygwin --------------------------------- 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 --------------------------------- →正常に行われています。 ●最新バージョン(3.3.5)のCygwin --------------------------------- C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" "root"@RJEL74JP:"\"/tmp/a\"" scp: dest open ""/tmp/a"": No such file or directory scp: failed to upload file /cygdrive//C/test/a to "/tmp/a" >echo %errorlevel% 1 --------------------------------- →アプリケーションにより実行したscpコマンドと同じエラーメッセージです。 ============================================= ※Cygwin Bash Shellから実行したら同じ結果です。 よって、scpコマンドの引数が同じですが、最新バージョン(3.3.5)のCygwinでの 実行が失敗しています。 上記の様に、Cygwinのバージョンによって実行結果が異なる理由を 教えていただけませんでしょうか。 また、コマンドプロンプトやCygwin Bash Shellで、同じ現象が発生したため、 サンプルプログラムが不要だと思います。 ****************************************************************** > -----Original Message----- > From: Cyrille Lefevre <cyrille.lefevre-li...@laposte.net> > Sent: Saturday, July 16, 2022 11:10 PM > To: Suzuki, Masaomi/鈴木 将臣 <suzuki.masa...@fujitsu.com>; > 'cygwin@cygwin.com' <cygwin@cygwin.com> > Cc: 'soft-mpop-...@ml.css.fujitsu.com' > <soft-mpop-...@ml.css.fujitsu.com> > Subject: [soft-mpop-qqm:27201] Re: scp command fails to transfer file and > returns 1. > > Le 13/07/2022 à 09:41, suzuki.masa...@fujitsu.com a écrit : > > As a result of debugging our application program, the scp command returned > the following message. > > > > /usr/bin/scp: dest open ""/tmp/a"": No such file or directory > > /usr/bin/scp: failed to upload file /cygdrive//C/test/a to "/tmp/a" > > Hi, > > it seems your application is calling scp with " around the arguments, so, scp > try > to copy "/tmp/a" instead of just /tmp/a. > > Regards, > > /me > -- > mailto:cyrille.lefevre-li...@laposte.net -- 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