Zsh
For loops syntax
In Zsh, the for loops syntax differs from Bash. Write a loop either like:
for x (1 2 3); do echo $x; done
or like this:
for x in 1 2 3; do echo $x; done
Parameter expansion
An alternative to the POSIX-complaint ${i%.ext}.newext in Zsh is:
${i:r}.newext
The :r tells the shell to automatically strip the extension, period included