Date: Wed, 20 Aug 2008 19:32:22 +0200 From: Matias Surdi <matiassurdi@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: [OT] Evaluate strings in bash Message-ID: <g8hkas$st7$1@ger.gmane.org> In-Reply-To: <200808201725.m7KHP0bt051409@lurza.secnetix.de> References: <g8hgs8$f13$2@ger.gmane.org> <200808201725.m7KHP0bt051409@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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` > > By the way, this has nothing to do with bash. Those things > work with every bourne shell, including FreeBSD's /bin/sh. > It even works with Solaris' /bin/sh which is very far from > a POSIX shell. :-) > > Best regards > Oliver > I've already tried that, but doesn't work. $newvariable will end with the output of running "make -m /usr/src/share/mk" on the current directory and not with the string "make -m /usr/src/share/mk" which is wat I want. Thanks a lot for your help.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?g8hkas$st7$1>