This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pass bash variable as argument to gcc


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]