[OT] Evaluate strings in bash
matiassurdi at gmail.com
Wed Aug 20 21:25:06 UTC 2008
Oliver Fromme escribió:
> Matias Surdi wrote:
> > Oliver Fromme escribió:
> > > Matias Surdi wrote:
> > > > # echo $BINMAKE
> > > > `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo
> > > > /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk
> > > >
> > > > I'd like to have a second variable like:
> > > > [code]
> > > > # echo $newvariable
> > > > make -m /usr/src/share/mk
> > >
> > > # newvariable=`eval echo $BINMAKE`
> > I've already tried that, but doesn't work.
> It does work. Maybe you forgot the "echo" part?
> Best regards
Maybe I've not explained it very well, look here:
Thanks for your help.
More information about the freebsd-questions