Re: Execution of a data string

2016-09-23 Thread L. A. Walsh
Reuti wrote: Am 22.09.2016 um 15:23 schrieb Greg Wooledge : On Wed, Sep 21, 2016 at 11:15:45PM -0400, mobatu...@yahoo.ca wrote: declare -a "$string" # results in execution of $string declare -a a=($string)# does not result in execution of $string This is why you don't u

Re: Execution of a data string

2016-09-23 Thread Chet Ramey
On 9/21/16 11:15 PM, mobatu...@yahoo.ca wrote: > Bash Version: 4.3 > Patch Level: 30 > Release Status: release > ___ > You can see in the picture below that: > declare -a "$ExecuteThisData" > resulted in executing the string "$Exe

Re: Execution of a data string

2016-09-22 Thread Reuti
> Am 22.09.2016 um 15:23 schrieb Greg Wooledge : > > On Wed, Sep 21, 2016 at 11:15:45PM -0400, mobatu...@yahoo.ca wrote: >> In Summary: >> >> declare -a "$string" # results in execution of $string >> declare -a a=($string)# does not result in execution of $string > > This is why you d

Re: Execution of a data string

2016-09-22 Thread Greg Wooledge
On Wed, Sep 21, 2016 at 11:15:45PM -0400, mobatu...@yahoo.ca wrote: > In Summary: > > declare -a "$string" # results in execution of $string > declare -a a=($string)# does not result in execution of $string This is why you don't use the first form. It's the same with eval -- if you don

Execution of a data string

2016-09-21 Thread mobatu...@yahoo.ca
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPA$