mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
sort: add "dictionary-order" flag.
The flag makes 'sort' command ignore non-dictionary symbols (non-alphanumeric and non-spaces). The only difference with GNU sort is that it takes ALL alphanumeric symbols, not only ASCII ones.
This commit is contained in:
parent
f44e5465b8
commit
71ba8b3fd6
4 changed files with 48 additions and 9 deletions
3
tests/fixtures/sort/dictionary_order.expected
vendored
Normal file
3
tests/fixtures/sort/dictionary_order.expected
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
bbb
|
||||
./bbc
|
||||
bbd
|
3
tests/fixtures/sort/dictionary_order.txt
vendored
Normal file
3
tests/fixtures/sort/dictionary_order.txt
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
./bbc
|
||||
bbd
|
||||
bbb
|
|
@ -65,6 +65,11 @@ fn test_ignore_case() {
|
|||
test_helper("ignore_case", "-f");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_dictionary_order() {
|
||||
test_helper("dictionary_order", "-d");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_multiple_files() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue