Comment

Comment by fiddlerwoaroof

I frequently find myself reaching for this pattern instead of xargs:

    do_something | ( while read -r v; do
    . . .
    done )
I’ve found that it has fewer edge cases (except it creates a subshell, which can be avoided in some shells by using braces instead of parens)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton