[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: passing argument with brace expansion to script



On Sun January 13 2008 10:59:52 Andreas Berglund wrote:
> I have a script to which I would like to pass an argument that contains
> brace expansion, but I want the expansion to be evaluated in the script,
> not before it gets passed along. Does annyone know how to do that?

Have you tried eval?

  $ echo '$SHELL'
  $SHELL
  $ eval echo '$SHELL'
  /bin/bash

--Mike Bird


Reply to: