Comment

Comment by intrepidhero

The number one use case of `for` in shell scripting is over the output of `$(ls .)` And I immediately run into a problem with filenames that have spaces and then I discover that a stringly typed language has lots of sharp edges.

I fall back on `for filename in os.listdir():`

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton