Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Test syntax documentation in B01cd is wrong?



The comment says:

# The first line (only) of a '>' and '?' chunk may be preceded by a '*',
# so the line starts '*>' or '*?'.  This signifies that all lines in the
# chunk (not just the one with the '*' in front) in the actual output
# are pattern matched against the corresponding lines in the test
# output.

But in fact it appears you have to start EVERY line that needs to be
pattern matched with "*>" or "*?" -- see, for example, in A02alias:

0:Aliasing reserved tokens
>begin
>end
*>*5*{ begin
*>*6*{end

Not only is that not *> on the first line, but there are two lines with
the leading splat.  Similarly in B06fc.



Messages sorted by: Reverse Date, Date, Thread, Author