3 ms·
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
by shakna 5y 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.
- bandie91 5y agoi bet it's the `cat file | while read …` loop what you are referring to, not any loop. but correct me.