Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--silent/--no-silent #10535

Closed
u20221022 opened this issue Feb 16, 2023 · 1 comment
Closed

--silent/--no-silent #10535

u20221022 opened this issue Feb 16, 2023 · 1 comment

Comments

@u20221022
Copy link

I did this

  1. curl.exe --manual | FindStr /C:"Providing -s, --silent" /C:"--no-silent" /N
    4309: Providing -s, --silent multiple times has no extra effect. Dis-
    4310: able it again with --no-silent.
  2. curl.exe -I --silent --no-silent "htps://curl.se/"
  3. curl.exe -I --no-silent --silent "htps://curl.se/"
    curl: (1) Protocol "htps" not supported or disabled in libcurl

I expected the following

Какой-нибудь глюк типа «not-a-bug» (#10459 и другие). Иначе не стал бы время тратить на такую примитивную проверку.
«Верной дорогой идёте, товарищи!»©

curl/libcurl version

7.88.0
[curl -V output]
curl 7.88.0 (x86_64-w64-mingw32) libcurl/7.88.0 OpenSSL/3.0.8 (Schannel) zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 WinIDN libssh2/1.10.0 nghttp2/1.52.0 ngtcp2/0.13.1 nghttp3/0.8.0 libgsasl/2.2.0
Release-Date: 2023-02-15
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli gsasl HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL SSPI threadsafe TLS-SRP UnixSockets zstd

operating system

MS Windows

bagder added a commit that referenced this issue Feb 16, 2023
- renamed the struct field to 'silent' to match the cmdline option
- make --show-error toggle independently of --silent
- make --silent independent of ->noprogress as well

By doing this, the three options --silent, --no-progress-meter and
--show-error should work independently of each other and also work with
and without '--no-' prefix as documented.

Reported-by: u20221022 on github
Fixes #10535
@bagder bagder closed this as completed in 6841f2e Feb 17, 2023
@Earnestly
Copy link

Earnestly commented Feb 21, 2023

I missed it when looking but this has already been reported and fixed, for others see: #10579


Possibly with this change --silent no longer appears to work when used in conjunction with -Z, --parallel:

What I see now:

$ curl -sZ example.com > /dev/null
DL% UL%  Dled  Uled  Xfers  Live Total     Current  Left    Speed
100 --   1256     0     1     0  --:--:-- --:--:-- --:--:--  8000
$

What is expected:

$ curl -sZ example.com > /dev/null
$

If this unrelated, I can make a new issue if prefered.

bch pushed a commit to bch/curl that referenced this issue Jul 19, 2023
- renamed the struct field to 'silent' to match the cmdline option
- make --show-error toggle independently of --silent
- make --silent independent of ->noprogress as well

By doing this, the three options --silent, --no-progress-meter and
--show-error should work independently of each other and also work with
and without '--no-' prefix as documented.

Reported-by: u20221022 on github
Fixes curl#10535
Closes curl#10536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants