root@f68kj:~# *export VAR="-fauto-inc-dec -falign-functions" gcc -Q $VAR --help=optimizers* bash: export: `-Q': not a valid identifier bash: export: `-fauto-inc-dec': not a valid identifier bash: export: `-falign-functions': not a valid identifier bash: export: `--help=optimizers': not a valid identifier However when I run this : *gcc -Q -fauto-inc-dec -falign-functions --help=optimizers* It works -- View this message in context: http://gcc.1065356.n5.nabble.com/pass-bash-variable-as-argument-to-gcc-tp1199673p1199707.html Sent from the gcc - Help mailing list archive at Nabble.com.