This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

silent option not silencing cURL error


    $ 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]