mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
wc: adapt error message to pass wc-files0-from
This commit is contained in:
@@ -16,7 +16,7 @@ wc-help-words = print the word counts
|
||||
# Error messages
|
||||
wc-error-files-disabled = extra operand '{ $extra }'
|
||||
file operands cannot be combined with --files0-from
|
||||
wc-error-stdin-repr-not-allowed = when reading file names from stdin, no file name of '-' allowed
|
||||
wc-error-stdin-repr-not-allowed = when reading file names from standard input, no file name of '-' allowed
|
||||
wc-error-zero-length-filename = invalid zero-length file name
|
||||
wc-error-zero-length-filename-ctx = { $path }:{ $idx }: invalid zero-length file name
|
||||
wc-error-cannot-open-for-reading = cannot open { $path } for reading
|
||||
|
||||
@@ -16,7 +16,7 @@ wc-help-words = afficher le nombre de mots
|
||||
# Messages d'erreur
|
||||
wc-error-files-disabled = opérande supplémentaire '{ $extra }'
|
||||
les opérandes de fichier ne peuvent pas être combinées avec --files0-from
|
||||
wc-error-stdin-repr-not-allowed = lors de la lecture des noms de fichiers depuis stdin, aucun nom de fichier '-' autorisé
|
||||
wc-error-stdin-repr-not-allowed = lors de la lecture des noms de fichiers depuis l'entrée standard, aucun nom de fichier '-' autorisé
|
||||
wc-error-zero-length-filename = nom de fichier de longueur nulle invalide
|
||||
wc-error-zero-length-filename-ctx = { $path }:{ $idx } : nom de fichier de longueur nulle invalide
|
||||
wc-error-cannot-open-for-reading = impossible d'ouvrir { $path } en lecture
|
||||
|
||||
@@ -544,7 +544,7 @@ fn test_files0_from_with_stdin_in_file() {
|
||||
|
||||
#[test]
|
||||
fn test_files0_from_with_stdin_try_read_from_stdin() {
|
||||
const MSG: &str = "when reading file names from stdin, no file name of '-' allowed";
|
||||
const MSG: &str = "when reading file names from standard input, no file name of '-' allowed";
|
||||
new_ucmd!()
|
||||
.args(&["--files0-from=-"])
|
||||
.pipe_in("-")
|
||||
|
||||
Reference in New Issue
Block a user