News for hackers. Stuff that matters.
Re:What does " 2>&1 " mean? by stabbles on Friday February 27, 2026 @01:52AM (#47177393)
Would be nice if `curl` had something to dump headers to a third file descriptor while outputting the response on stdout.
Re:What does " 2>&1 " mean? by homebrewer on Friday February 27, 2026 @03:38AM (#47178131)
This should work?

  curl --dump-header /dev/fd/xxx https://google.com
or

  mkfifo headers.out
  curl --dump-header headers.out https://google.com
unless I'm misunderstanding you.
Re:What does " 2>&1 " mean? by stabbles on Friday February 27, 2026 @03:50AM (#47178228)
Ah yeah, `/dev/fd/xxx` works :) somehow thought that was Linux only.
Re:What does " 2>&1 " mean? by xantronix on Friday February 27, 2026 @11:21AM (#47182333)
(Principal Skinner voice) Ah, it's a Bash expression!