bug-bash
[Top][All Lists]
Advanced

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

eval, apparently inconsistent behavior


From: antonio
Subject: eval, apparently inconsistent behavior
Date: Tue, 03 Jun 2008 19:40:21 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080213)

#!/bin/bash

a=( 1 2 3 )
b=( 4 5 6 )

x=a
eval b=( address@hidden )
echo address@hidden

#output:
#1 2 3


x=b
eval $x=( address@hidden )

#output:
#./tst: line 15: syntax error near unexpected token `('
#./tst: line 15: `eval $x=( address@hidden ) '




reply via email to

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