curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Exit status not reflecting 404 with --fail

From: Petr Pisar via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 27 Nov 2023 18:09:03 +0100

V Mon, Nov 27, 2023 at 07:59:44AM -0700, Paul Gilmartin via curl-users napsal(a):
> On 11/27/23 07:13:39, Hans Henrik Bergan via curl-users wrote:
> > rule of thumb, use `type curl` not `which curl`
> > (most often either works, but in some situations, `which curl` could
> > output /usr/bin/curl and `type curl` could output `curl is a shell
> > builtin` or whatever)
> .
> I believe that "type curl" will likewise report aliases, that
> "which curl" will not.
>
> Because of dueling package managers, I have a script that parses
> PATH and reports (ls -l) each instance it finds.
>
Bash builtin "type -a" does that.

-- Petr


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-11-27