In-reply-to » You'll never guess what I learned from https://www.uninformativ.de/blog/postings/2023-11-19/0/POSTING-en.html. I've never seen for i do in shell scripts. Turns out, that walks over all positional arguments. So I reckon my for i in "$@"; do can now be shorter from now on. Very interesting in that detailled explanation to see all the – at least to me – inconsistent handling of semicolons and line breaks.

(I think I first saw for i; do in Shell-Skript Programmierung by Patrick Ditchen from 2008: German excerpt. They didn’t mention any restrictions on shell versions and I’ve been using it for ages. 😅 (I’m not too happy that the book uses for i in $* as the default template instead of for i in "$@". The book doesn’t care too much about file names with spaces in them.))

⤋ Read More