bash expansion help

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Wed Feb 7 00:42:30 UTC 2007


On Mon, Feb 05, 2007 at 01:16:54PM -0500, Lennart Sorensen wrote:
> > Can you find a way do do this with less overhead?  I count two
> > invocations of the shell, one implicit by using `` and one explicit.
> 
> Hmm, I missed that if was expanding $arm_opts.  I had been playing with
> it as just foo=`echo ARM{610,710,_{SA110,SA1100,XSCALE}}` which didn't
> need another shell.  Given the extra variable, no I don't think I can
> find a shorter method.  Not sure eval or anything else would do it, but
> it would take more characters to do it for sure.

I'm sure of it. :-)  Try
    eval echo ...

-- 
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
	   http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
	  http://freshmeat.net/projects/bashdiff/
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list