"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "unit-tests/moderrs.mk" between
bmake-20201101.tar.gz and bmake-20201117.tar.gz

About: bmake a BSD make tool (derived from NetBSD’s make).

moderrs.mk  (bmake-20201101):moderrs.mk  (bmake-20201117)
# $NetBSD: moderrs.mk,v 1.24 2020/11/01 14:36:25 rillig Exp $ # $NetBSD: moderrs.mk,v 1.25 2020/11/15 20:20:58 rillig Exp $
# #
# various modifier error tests # various modifier error tests
'= '\'' '= '\''
VAR= TheVariable VAR= TheVariable
# in case we have to change it ;-) # in case we have to change it ;-)
MOD_UNKN= Z MOD_UNKN= Z
MOD_TERM= S,V,v MOD_TERM= S,V,v
MOD_S:= ${MOD_TERM}, MOD_S:= ${MOD_TERM},
skipping to change at line 126 skipping to change at line 126
@echo 3: ${VAR:C,from @echo 3: ${VAR:C,from
@echo 4: ${VAR:C,from, @echo 4: ${VAR:C,from,
@echo 5: ${VAR:C,from,to @echo 5: ${VAR:C,from,to
@echo 6: ${VAR:C,from,to, @echo 6: ${VAR:C,from,to,
@echo 7: ${VAR:C,from,to,} @echo 7: ${VAR:C,from,to,}
# In regular expressions with alternatives, not all capturing groups are # In regular expressions with alternatives, not all capturing groups are
# always set; some may be missing. Warn about these. # always set; some may be missing. Warn about these.
# #
# Since there is no way to turn off this warning, the combination of # Since there is no way to turn off this warning, the combination of
# alternative matches and capturing groups is not widely used. # alternative matches and capturing groups is seldom used, if at all.
# #
# A newly added modifier 'U' such as in :C,(a.)|(b.),\1\2,U might be added # A newly added modifier 'U' such as in :C,(a.)|(b.),\1\2,U might be added
# for treating undefined capturing groups as empty, but that would create a # for treating undefined capturing groups as empty, but that would create a
# syntactical ambiguity since the :S and :C modifiers are open-ended (see # syntactical ambiguity since the :S and :C modifiers are open-ended (see
# mod-subst-chain). Luckily the modifier :U does not make sense after :C, # mod-subst-chain). Luckily the modifier :U does not make sense after :C,
# therefore this case does not happen in practice. # therefore this case does not happen in practice.
# The sub-modifier for the :S and :C modifiers would have to be chosen # The sub-modifier for the :S and :C modifiers would have to be chosen
# wisely, to not create ambiguities while parsing. # wisely, to not create ambiguities while parsing.
mod-regex-undefined-subexpression: print-header print-footer mod-regex-undefined-subexpression: print-header print-footer
@echo ${FIB:C,1(.*),one\1,} # all ok @echo ${FIB:C,1(.*),one\1,} # all ok
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)