mirror of
https://github.com/uutils/coreutils.git
synced 2025-08-31 07:47:52 +00:00
sort: allow a sort mode to appear multiple times
A test case for this is `sort -k 2n,2n` which should be accepted, because `n` is compatible with itself. Resolves issue #4129.
This commit is contained in:
parent
8e1742f45a
commit
03c40b2db2
2 changed files with 6 additions and 1 deletions
|
@ -1156,3 +1156,8 @@ fn test_tmp_files_deleted_on_sigint() {
|
|||
// `sort` should have deleted the temporary directory again.
|
||||
assert!(read_dir(at.plus("tmp_dir")).unwrap().next().is_none());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_same_sort_mode_twice() {
|
||||
new_ucmd!().args(&["-k", "2n,2n", "empty.txt"]).succeeds();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue