Hacker News new | ask | show | jobs
by shakna 1664 days ago
Bash has some subtleties around loops that can be frustrating, like the body of your loop _may_ actually be running in a subshell (common when iterating over a file), making it difficult to extract what you want from it.
1 comments

i bet it's the `cat file | while read …` loop what you are referring to, not any loop. but correct me.