From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15084 invoked by alias); 15 Jul 2015 21:13:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35798 Received: (qmail 833 invoked from network); 15 Jul 2015 21:13:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.0 From: Jason L Tibbitts III To: zsh-workers@zsh.org Subject: "bad substitution" error for ${a[b]} Date: Wed, 15 Jul 2015 15:03:15 -0500 Message-ID: User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain I'm trying to understand the following: > echo '$a[b]' | zsh -fn > echo '${a[b]}' | zsh -fn zsh: bad substitution Specifically, what's wrong with the second line? I have vim doing basic syntax checking by running zsh -n and noticed that it was complaining about the second line (obviously turned into a minimal case) but not the first. The script runs fine either way so I'm not sure what's up. Asked the folks on #zsh and they suggest I report the issue here. Thanks, - J<