Skip Navigation

why does noone inprove bash such that you can write a normal foor loop with whitespace in file names?

I know that there are ten different alternatives. Why don't we simply improve the basic stuff?

38

You're viewing a single thread.

38 comments
  • Am I not reading your question right? Just quote the variable and filenames with spaces work fine.

    for i in *; do
        cat "$i" ;
    done
    
38 comments