@cas I violently disagree. I'm talking about newbies, the run-of-the-mill questions here where the user in question isn't very well versed in all this. They won't be able to parse all that. What they would need is "just use
for f in ./*
instead of
for f in $(ls)
". That doesn't even require any demolishing, it just works. And it doesn't help that the accepted answer there forks off to Python instead. IMO, Greg's wiki has a way better source, here:
mywiki.wooledge.org/ParsingLs