Date: Wed, 20 Aug 2008 19:49:38 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-questions@FreeBSD.ORG, matiassurdi@gmail.com Subject: Re: [OT] Evaluate strings in bash Message-ID: <200808201749.m7KHncLG052956@lurza.secnetix.de> In-Reply-To: <g8hkas$st7$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "To this day, many C programmers believe that 'strong typing' just means pounding extra hard on the keyboard." -- Peter van der Linden
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808201749.m7KHncLG052956>