zsh-workers
 help / color / mirror / code / Atom feed
* noexec does not detect subscript error
@ 2022-01-26 13:42 gqqnb2005
  2022-01-26 17:32 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: gqqnb2005 @ 2022-01-26 13:42 UTC (permalink / raw)
  To: zsh-workers

$ cat a.sh
a=$argv[
$ zsh -n a.sh
$ zsh a.sh
a.sh:1: invalid subscript

The above z shell commands show my a.sh only has "a=$argv[" which
clearly has a syntax error. Then I use zsh -n (noexec) to check the
syntax, zsh does not report any error.

Can the error be fixed so that the -n (noexec) detects these kinds of
apparent errors?


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

end of thread, other threads:[~2022-01-26 17:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 13:42 noexec does not detect subscript error gqqnb2005
2022-01-26 17:32 ` Bart Schaefer
2022-01-26 17:40   ` Bart Schaefer

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