News for hackers. Stuff that matters.
Re:Show HN: Curl https://ec2.shop by css on Tuesday June 30, 2020 @10:53AM (#23690639)
Very neat. Anyone know why

    curl -s https://ec2.shop | grep 't2'
would work, but

    curl -s https://ec2.shop | grep 'm4'
does not? Both commands work if I write the curl result to a file, but when I pipe from curl, the pattern `m4` matches all instances of the number 4.
Re:Show HN: Curl https://ec2.shop by wolfgang42 on Tuesday June 30, 2020 @11:01AM (#23690739)
It’s not matching every number 4, just the ones at the start of a column. The m is coming from “ESC[31m”, the escape code used to set the color of the text in the column.
Re:Show HN: Curl https://ec2.shop by kureikain on Tuesday June 30, 2020 @11:10AM (#23690846)
Thank you, this is a bug.

The color code for blue is `"\033[34m` so it always match m4 for anything :(.

Just push a fix by disabling color as suggestion in here as well

Re:Show HN: Curl https://ec2.shop by css on Tuesday June 30, 2020 @11:12AM (#23690864)
Ah, got it, thanks for the clarity.