From: Jason L Tibbitts III <tibbs@math.uh.edu>
To: zsh-workers@zsh.org
Subject: "bad substitution" error for ${a[b]}
Date: Wed, 15 Jul 2015 15:03:15 -0500 [thread overview]
Message-ID: <ufatwt5kx30.fsf@epithumia.math.uh.edu> (raw)
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<
next reply other threads:[~2015-07-15 21:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 20:03 Jason L Tibbitts III [this message]
2015-07-16 0:09 ` Bart Schaefer
2015-07-16 8:30 ` Peter Stephenson
2015-07-16 20:47 ` Bart Schaefer
2015-07-17 19:30 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ufatwt5kx30.fsf@epithumia.math.uh.edu \
--to=tibbs@math.uh.edu \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).