Skip to main content

Thread: User input in .bashrc file


hi

have bit of problem .bashrc file. trying make alias when compiling c++ code root dont have type out massive line of text, here type:

code:
g++ "program name" `root-config --cflags llibs`

have tried make alias such as:

code:
alias gr='g++ `root-config --cflags --libs`'

problem when run, have place program name after of root-config stuff, , when happens fails compile, need way bash insert program name inbetween g++ , `root-config....`

quote posted thedemon13666 view post
hi

have bit of problem .bashrc file. trying make alias when compiling c++ code root dont have type out massive line of text, here type:

code:
g++ "program name" `root-config --cflags llibs`
now have tried make alias such as:

code:
alias gr='g++ `root-config --cflags --libs`'
the problem when run, have place program name after of root-config stuff, , when happens fails compile, need way bash insert program name inbetween g++ , `root-config....`

thanks
write script... aliases aren't meant resolve problems.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk User input in .bashrc file


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account