delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/30/22:01:15

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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=acTuTIfMizjR6kNvEH83Z1K9QSl67
AKk+HxB9wJ28UXayC0PQkeVTGqlPy8GB/iw66loKImSOFUC8H/Ld+BBc5DwfW2Qq
55vCjQ49DmQMp9hdWwFx0iSoAGgS6zQJuWvMOeyqql62LCoPHhPfKN+6XPsF6nty
UaBIv29Cj27i64=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=p+SnM9S2NiGFX4F9w2WjWVOltdY=; b=c+Q
cb/uDInxifaBxccoPOIR3AYKlcUGLOCJNrXIrjDn3Qop/kUyHJje7ACoHhkpzzZg
ZH1YONWhqy30sJfC3Qp+sOAFJSJN5cH2wKET0kXpH/7zm2XqovCCYwVmPX1VfF/c
S+u9ll10RrFHv9ilAQTZyU2Vfo6f114xwhCehYIw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=
X-HELO: mail-qt0-f171.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sz76+15PNGVRTDYdgGRTg2uyMs+N77+5YyJy8TVd2Xc=; b=CR/U9b1Yc/L9locaN7RRZTPV6nfDl9kNzuo/SgLREu6W2k/m07Hupxd/MPVQEsENPY QPKUvhtsW7cYsvx7wRDVHGLKa0MtNt/jXG6pbJ4OGXuYdw2wLfGnqRKRKO7jSNupSNOg CS7NWACODeNDxb8Uw21D/+8I6Vx0UM5q4YPepXRBJ7at8RqI27oridESvICnld/pFuCb ayV2MBa0U0B7XRR4WF4oW72upC21mfYoNXqnmiJPOSAWyN8cH8nKvNo/8U1YSrO4VocM gwrUnClEE2wHCfUCz+hlP8eXhysZe9d567BMjFECvLfs2cpS4688D1hWdaxiSvQyMtgg feVg==
X-Gm-Message-State: AKaTC037880Til7GEnEVZXym2qPqYrBdo3WCGiykLT7un4kFSpgdp9oi59QefknRZIq4XCj6ED/SRhbctQzTtA==
X-Received: by 10.200.54.144 with SMTP id a16mr35694407qtc.104.1480561229374; Wed, 30 Nov 2016 19:00:29 -0800 (PST)
MIME-Version: 1.0
From: Steven Penny <svnpenn AT gmail DOT com>
Date: Wed, 30 Nov 2016 21:00:29 -0600
Message-ID: <CAAXzdLWeMosC0aowDsefXZ2RZ0kowhC46csw7xpmMbcfeRASTg@mail.gmail.com>
Subject: silent option not silencing cURL error
To: cygwin AT cygwin DOT com

    $ curl --version
    curl 7.51.0

Piping cURL to head gives me an error, as expected:

    $ curl https://github.com/github | head
    [...]
    (23) Failed writing body

However adding the silent option, is not silencing it:

    $ curl --silent https://github.com/github | head
    [...]
    (23) Failed writing body

I can quiet the error with:

    curl https://github.com/github 2>/dev/null | head

but silent should be taking care of this. Note the Windows version here works as
expected:

http://bintray.com/vszakats/generic/curl

cross post:

http://stackoverflow.com/q/40901579/silent-option-not-silencing-curl-error

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019