Zsh parameter expansion

3061 views zsh
3

How do I get the following z shell script to function the same way that it would in bash?

for x in {f..k}
    do echo ${x}
done

In bash I get f j k printed out but in zsh, I get {f..k} printed literally.

answered question

1 Answer

9

It works:

for x ({f..k}); echo ${x}

posted this

Have an answer?

JD

Please login first before posting an answer.