From 905714ca794a8b2ad96b1f9381e29bb9c3ecb2ab Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 26 Sep 2025 17:46:59 +0200 Subject: [PATCH] wc: adapt error message to pass wc-files0-from --- src/uu/wc/locales/en-US.ftl | 2 +- src/uu/wc/locales/fr-FR.ftl | 2 +- tests/by-util/test_wc.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/wc/locales/en-US.ftl b/src/uu/wc/locales/en-US.ftl index 8acb86f8e..410eb3e6e 100644 --- a/src/uu/wc/locales/en-US.ftl +++ b/src/uu/wc/locales/en-US.ftl @@ -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 diff --git a/src/uu/wc/locales/fr-FR.ftl b/src/uu/wc/locales/fr-FR.ftl index 2743bf14f..e04d89fd9 100644 --- a/src/uu/wc/locales/fr-FR.ftl +++ b/src/uu/wc/locales/fr-FR.ftl @@ -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 diff --git a/tests/by-util/test_wc.rs b/tests/by-util/test_wc.rs index d2007929b..fa861a4c3 100644 --- a/tests/by-util/test_wc.rs +++ b/tests/by-util/test_wc.rs @@ -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("-")