but for me the script you posted (except for the b...
# vhdl
a
but for me the script you posted (except for the bash stuff i just mentioned) ran completely fine