logoalt Hacker News

chrismorgantoday at 3:11 AM2 repliesview on HN

  $ curl -s 'https://httpbingo.org/get?' | jq .url
  "https://httpbingo.org/get"
This may require further investigation.

Replies

susamtoday at 6:39 AM

From Debian 13.2 (Trixie) + Bash + curl 8.14.1:

  $ curl -s 'https://httpbingo.org/get?' | jq .url
  "https://httpbingo.org/get"
But on macOS + Bash/Zsh + curl 8.7.1:

  $ curl -s 'https://httpbingo.org/get?' | jq .url
  "https://httpbingo.org/get?"
I see some related changes here: https://github.com/curl/curl/commit/3eac21d
Groxxtoday at 4:01 AM

Might be shell expansion? zsh uses `?` for filename expansion, others might as well: https://zsh.sourceforge.io/Doc/Release/Expansion.html#Filena...

Though I forget if any shell does stuff like that in quotes. Or printing oddities.

show 1 reply