bug-bash
[Top][All Lists]
Advanced

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

Re: declare a="$b" if $a previously set as array


From: Stephane Chazelas
Subject: Re: declare a="$b" if $a previously set as array
Date: Tue, 16 Dec 2014 22:44:21 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

2014-12-16 21:49:58 +0000, Stephane Chazelas:
[...]
> 1.1 litteral array assignment.
[...]
> 1.2 litteral scalar assignment
[...]
> 2. words that don't form valid assignments.
> 
> Those are parsed as normal command line arguments.
> 
> declare \a=(...)
> 
> would get a syntax error because of the unexpected ( like with
> echo \a=(...).
> 
> And the resulting words after expansion are treated like in 1.1
> above.
[...]

Sorry, I meant "like in 1.2", not "like in 1.1".

-- 
Stephane



reply via email to

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