Skip to content

Commit 9b80a98

Browse files
authored
Merge pull request #8748 from cakebaker/sort_fix_files0_from
sort: adapt error message to pass `sort-files0-from`
2 parents 20c2779 + 7739598 commit 9b80a98

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/uu/sort/locales/en-US.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sort-file-operands-combined = extra operand '{$file}'
2222
file operands cannot be combined with --files0-from
2323
Try '{$help} --help' for more information.
2424
sort-multiple-output-files = multiple output files specified
25-
sort-minus-in-stdin = when reading file names from stdin, no file name of '-' allowed
25+
sort-minus-in-stdin = when reading file names from standard input, no file name of '-' allowed
2626
sort-no-input-from = no input from '{$file}'
2727
sort-invalid-zero-length-filename = {$file}:{$line_num}: invalid zero-length file name
2828
sort-options-incompatible = options '-{$opt1}{$opt2}' are incompatible

src/uu/sort/locales/fr-FR.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sort-file-operands-combined = opérande supplémentaire '{$file}'
2222
les opérandes de fichier ne peuvent pas être combinées avec --files0-from
2323
Essayez '{$help} --help' pour plus d'informations.
2424
sort-multiple-output-files = plusieurs fichiers de sortie spécifiés
25-
sort-minus-in-stdin = lors de la lecture des noms de fichiers depuis stdin, aucun nom de fichier '-' n'est autorisé
25+
sort-minus-in-stdin = lors de la lecture des noms de fichiers depuis l'entrée standard, aucun nom de fichier '-' n'est autorisé
2626
sort-no-input-from = aucune entrée depuis '{$file}'
2727
sort-invalid-zero-length-filename = {$file}:{$line_num} : nom de fichier de longueur zéro invalide
2828
sort-options-incompatible = les options '-{$opt1}{$opt2}' sont incompatibles

tests/by-util/test_sort.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,9 @@ fn test_files0_from_minus_in_stdin() {
14051405
.args(&["--files0-from", "-"])
14061406
.pipe_in("-")
14071407
.fails_with_code(2)
1408-
.stderr_only("sort: when reading file names from stdin, no file name of '-' allowed\n");
1408+
.stderr_only(
1409+
"sort: when reading file names from standard input, no file name of '-' allowed\n",
1410+
);
14091411
}
14101412

14111413
#[test]

0 commit comments

Comments
 (0)