Shell Script — Variables for a range of characters gets executed as group of characters

I don’t know why you want to generate a range of characters, but there’s a password generator macro that might be worth looking at if only to give you some ideas for achieving what you want.