mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
csplit: only allow ASCII digits for repeat pattern
This commit is contained in:
parent
15f606a12b
commit
7439050d85
2 changed files with 10 additions and 1 deletions
|
@ -83,6 +83,15 @@ fn test_up_to_line_sequence() {
|
|||
assert_eq!(at.read("xx02"), generate(25, 51));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_up_to_line_with_non_ascii_repeat() {
|
||||
// we use a different error message than GNU
|
||||
new_ucmd!()
|
||||
.args(&["numbers50.txt", "10", "{𝟚}"])
|
||||
.fails()
|
||||
.stderr_contains("invalid pattern");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_up_to_match() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue