Hacker News new | ask | show | jobs
by hardbass 14 days ago
It does. And {1..14} would be a shell expansion not a curl feature ie the shell blew it up to 14 different args before curl saw it.
1 comments

Your initial comment stated that to support multiple URLs it is required to use [] syntax. This is inaccurate, because curl supports multiple URL args hence shell expansion {} works just fine.
Why are we nitpicking shell syntax in a page on a monumental result like this? He was thinking its a curl feature. I was just clarifying its a shell feature, I try not to depend on shell expansions due to the command buffer limits so something like a for loop or curls internal expansion is good to know of.

edit: apparently he clarified later he meant he really didn't know of curl a b c d etc working.