* Inconsistent parse error output
@ 2023-02-08 7:57 Marlon Richert
0 siblings, 0 replies; only message in thread
From: Marlon Richert @ 2023-02-08 7:57 UTC (permalink / raw)
To: Zsh hackers list
% done; foo
zsh: parse error near `done'
% :; done; foo
zsh: parse error near `done'
% if; done; foo
zsh: parse error near `done'
% if; then done; foo
zsh: parse error near `foo'
%
I would've expected that last one to produce the same error output as
the previous ones.
This can lead to confusing output when the parse error occurs in a file:
% > tst << EOF
if :; then
:
done
# lots
# of
# comments
foo
EOF
% source tst
tst:9: parse error near `foo'
%
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-08 7:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 7:57 Inconsistent parse error output Marlon Richert
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).