aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/parser.cxx2
-rw-r--r--tests/name/cross.test6
2 files changed, 7 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 27e1933..4d628b0 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -2341,7 +2341,7 @@ namespace build2
return ns.size () - start;
}
- // Expand a name pattern. Note that the result can empty (as in "no
+ // Expand a name pattern. Note that the result can be empty (as in "no
// elements").
//
size_t parser::
diff --git a/tests/name/cross.test b/tests/name/cross.test
index 04da551..3847b6a 100644
--- a/tests/name/cross.test
+++ b/tests/name/cross.test
@@ -102,6 +102,12 @@ EOI
{
touch x.foo y.bar;
$* <'print {foo bar}{*}' >'foo{x} bar{y}'
+
+ mkdir dir && touch dir/x.foo;
+ $* <'print {*/}{*.foo}' >'dir/x.foo'
+
+ mkdir dir && touch dir/x.foo;
+ $* <'print {*/}{foo}{*}' >'dir/foo{x}'
}
# @@ TODO: nested replay.