From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11209 invoked by alias); 21 Jun 2019 07:37:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11202 invoked by uid 89); 21 Jun 2019 07:37:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Received:ed0a, substantial, Scott, scott X-HELO: mail-qk1-f175.google.com Received: from mail-qk1-f175.google.com (HELO mail-qk1-f175.google.com) (209.85.222.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Jun 2019 07:36:58 +0000 Received: by mail-qk1-f175.google.com with SMTP id m14so3742610qka.10 for ; Fri, 21 Jun 2019 00:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5MT/K0K2XDAcyZgWqeF7yWRKrgalr635TvGyfZ87AyU=; b=vd1vmYVTY8nVCQJoejF5M/rUMuOm4vrUJqI98/X5LLSx+g6P3X/kHDSdzF/J/JDOTY ZERsYCHpmKBTsT6+EKWX4ToNPok5Thaakd8l4kd6bpLnz4cfnm9+m7NqKe3Qa7vTn8wL XDDOXClRYzwTJ0gNFIFfevc+c1ry5mgiZ1jSclRpSFwlmxDRthslpFoQ1RHILwGgFblA eAzA4yPfa0j15ZaewbYHGth+QXdNujVy6go9v1dsI4evWGqzSLJ8LTPcnfipgvuPqslv tr/ZLPnwh+4gWC7eq6Iekku60mKco+r5DrF0kUOAb62UFFDokJF+VgSxq3zxYNY8LS0e JTVA== MIME-Version: 1.0 References: <20190621072718.86F8146400A4@webmail.sinamail.sina.com.cn> In-Reply-To: <20190621072718.86F8146400A4@webmail.sinamail.sina.com.cn> From: Csaba Raduly Date: Fri, 21 Jun 2019 07:37:00 -0000 Message-ID: Subject: Re: Running 'curl' with '-o' option failed with error "curl: (23) Failed writing body (0 != 720)" To: mahao_boy@sina.cn, cygwin list Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-06/txt/msg00187.txt.bz2 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