Date: Wed, 20 Aug 2008 10:26:51 -0700 From: Chuck Swiger <cswiger@mac.com> To: Matias Surdi <matiassurdi@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: [OT] Evaluate strings in bash Message-ID: <E4ECA7E0-1EC5-41F5-97C5-6451EA465AA7@mac.com> In-Reply-To: <g8hgs8$f13$2@ger.gmane.org> References: <g8hgs8$f13$2@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 20, 2008, at 9:31 AM, Matias Surdi wrote: > I've the following variable: > > [code] > # 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 > # > [/code] > > It's a string wich includes a commmand. > > How can I get the subcommand replaced by its output? I think you're looking for "eval $BINMAKE"...? -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E4ECA7E0-1EC5-41F5-97C5-6451EA465AA7>