zsh-workers
 help / color / mirror / code / Atom feed
* "bad substitution" error for ${a[b]}
@ 2015-07-15 20:03 Jason L Tibbitts III
  2015-07-16  0:09 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Jason L Tibbitts III @ 2015-07-15 20:03 UTC (permalink / raw)
  To: zsh-workers

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<


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-17 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15 20:03 "bad substitution" error for ${a[b]} Jason L Tibbitts III
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

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).