X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:reply-to:from:to:subject:mime-version :message-id:content-type:content-transfer-encoding; q=dns; s= default; b=uOid846/MZw1cYqJQxOPQjrABKQeZ8nKkmVWp8SdvvC/vwrhcc467 y9WjxGbj+rNVDmL1L+6T83ILFdQsFMBr+T8nrBS+avOu2W5lnXOJRnQYk0M1UUjo hqUxNjX1toDcT+NSbJ4qQ4YhikT92Dic++j7+aZGxfZhW8X6mcWnPI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:reply-to:from:to:subject:mime-version :message-id:content-type:content-transfer-encoding; s=default; bh=Lj2pKlgHR3AdNqkjORbLs67UG54=; b=k6oCSPe7uSgUVgYYC6ku997jGqQ7 vSDX14yKgYIH2AnjlCftvT2Z1JvUdmtIHRlxltbJCaRo4FhEz6Lm2uN6ErD5kfOw D7qXhuJudhOIjYzi6iqViiaAByFaP01Geu5qGJ5/ZqDOl2685p1rZtsMoIYsxth6 OSoYQw2VnceMUo0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=3.9 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,CHARSET_FARAWAY_HEADER,FREEMAIL_FROM,GARBLED_BODY,GARBLED_FROM,GARBLED_SUBJECT,GIT_PATCH_2,HTML_MESSAGE,MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=8:21, 8:=ca=d5, 8:.c, 8:=bc=fe?= X-HELO: mail7-216.sinamail.sina.com.cn X-Sender: mahao_boy AT sina DOT cn X-SMAIL-MID: 653977394912 Date: Fri, 21 Jun 2019 15:40:49 +0800 Reply-To: mahao_boy AT sina DOT cn From: "Ma Hao" To: "Csaba Raduly" , "cygwin" Subject: =?GBK?B?u9i4tKO6UmU6IFJ1bm5pbmcgJ2N1cmwnIHdpdGggJy1vJyBvcHRpb24gZmFpbGVkIHdpdGggZXJyb3IgImN1cmw6ICgyMykgRmFpbGVkIHdyaXRpbmcgYm9keSAoMCAhPSA3MjApIg==?= MIME-Version: 1.0 X-MessageID: 5d0c8a0115087aca_201906 Message-Id: <20190621074049.8D3DF4140097@webmail.sinamail.sina.com.cn> Content-Type: text/plain; charset=GBK Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x5L7fUlx018722 Thanks for pointing that out.Appreciate your quick responding. -------------------------------- Ma HaoBR email: mahao_boy AT sina DOT cn Phone: +86(0)13981759428 Location: Tianfu Software Park, Tianfu avenue, High Tech Zone, Chengdu, Sichuan Province, China ----- 原始邮件 ----- 发件人:Csaba Raduly 收件人:mahao_boy AT sina DOT 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) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple