|
From: | Chet Ramey |
Subject: | Re: "Bad substitution error" is not "well" reported, when invoking and array. |
Date: | Sun, 20 Jan 2008 18:13:01 -0500 |
User-agent: | Thunderbird 2.0.0.9 (Macintosh/20071031) |
Andres Sajo wrote:
Bash Version: 3.2 Patch Level: 25 Release Status: release Description: "Bad substitution error" is not "well" reported, when invoking and array: VAR='([0]=first [1]=second)' ${VAR[0] } works, but ${ VAR[0]} dosen't
Bash correctly flags the latter as an error, and allows the former as an extension for flexibility. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |