Thanks for pointing that out.Appreciate your quick responding. -------------------------------- Ma HaoBR email: mahao_boy@sina.cn Phone: +86(0)13981759428 Location: Tianfu Software Park, Tianfu avenue, High Tech Zone, Chengdu, Sichuan Province, China ----- 原始邮件 ----- 发件人:Csaba Raduly 收件人:mahao_boy@sina.cn, cygwin list 主题:Re: Running 'curl' with '-o' option failed with error "curl: (23) Failed writing body (0 != 720)" 日期:2019年06月21日 15点37分 Hi, On Fri, Jun 21, 2019 at 9:28 AM Ma Hao wrote: > > Hi, > I was running into the problem when I tried to download spring: > $ curl https://codeload.github.com/spring-projects/spring-framework/zip/master -o /home/cdmahao/ You told curl to write the download to a file named /home/cdmahao/ Unfortunately, there is already a directory named /home/cdmahao/, and curl can't write a file to a directory. You need to give the name of a file to -o $ curl https://codeload.github.com/spring-projects/spring-framework/zip/master -o /home/cdmahao/master.zip curl works differently from wget. wget invents a filename based on the URL. curl does not do that. Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformat way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) B婯CB涁[H橽軡螆嬎剞Y葳[嫎圹K涁[\藲[B憪TN嬎剞Y葳[嫎圹K贅\K肂剌[Y[][蹘嬎剞Y葳[嫎圹K剀藲[B昜溳X溫軞X橦[櫅螆嬎剞Y葳[嫎圹K踇 容[溳X溫軞X橩\赱\CB傿