New answers tagged

3 votes

Why does the test command apparently choke on a for loop variable?

I suspect the problem comes from ls’s use of colours in its output. Since you’re parsing ls’s output, if ls outputs colours, the corresponding escape codes will end up in the values given to f, and ...

Top 50 recent answers are included