Skip to content

Commit feb47ae

Browse files
committed
expr: Test handling '$' at the end of an alternative pattern
1 parent ab394a0 commit feb47ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/by-util/test_expr.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ fn test_regex() {
290290
.args(&["a$b", ":", "a\\$b"])
291291
.succeeds()
292292
.stdout_only("3\n");
293+
new_ucmd!()
294+
.args(&["a", ":", "a$\\|b"])
295+
.succeeds()
296+
.stdout_only("1\n");
293297
new_ucmd!()
294298
.args(&["abc", ":", "^abc"])
295299
.succeeds()

0 commit comments

Comments
 (0)