bug-bash
[Top][All Lists]
Advanced

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

Re: declare/typeset can't set array to variable name


From: Greg Wooledge
Subject: Re: declare/typeset can't set array to variable name
Date: Fri, 5 Jan 2018 08:12:06 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Fri, Jan 05, 2018 at 08:02:24AM -0500, Chet Ramey wrote:
> On 1/4/18 9:27 PM, Tim Burnham wrote:
> > address@hidden:~/ declare ${var2}="And this works"
> > address@hidden:~/ declare ${var2}=( This breaks )
> > -bash: syntax error near unexpected token `('

> It's a syntax error.

Pages that may or may not help:

http://mywiki.wooledge.org/BashWeaknesses
http://mywiki.wooledge.org/BashFAQ/006
http://mywiki.wooledge.org/BashProgramming



reply via email to

[Prev in Thread] Current Thread [Next in Thread]