Merge pull request #8749 from cakebaker/wc_fix_files0_from
Some checks failed
CICD / Style/cargo-deny (push) Has been cancelled
CICD / Style/deps (push) Has been cancelled
CICD / Documentation/warnings (push) Has been cancelled
CICD / MinRustV (push) Has been cancelled
CICD / Dependencies (push) Has been cancelled
CICD / Code Coverage (push) Has been cancelled
CICD / Separate Builds (push) Has been cancelled
GnuTests / Run GNU tests (native) (push) Has been cancelled
GnuTests / Run GNU tests (SELinux) (push) Has been cancelled
Code Quality / Style/spelling (push) Has been cancelled
Android / Test builds (push) Has been cancelled
Code Quality / Style/format (push) Has been cancelled
Code Quality / Style/lint (push) Has been cancelled
Code Quality / Style/toml (push) Has been cancelled
Code Quality / Style/Python (push) Has been cancelled
Code Quality / Pre-commit hooks (push) Has been cancelled
Devcontainer / Verify devcontainer (push) Has been cancelled
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
FreeBSD / Style and Lint (push) Has been cancelled
FreeBSD / Tests (push) Has been cancelled
WSL2 / Test (push) Has been cancelled
CICD / Build/Makefile (push) Has been cancelled
CICD / Build/stable (push) Has been cancelled
CICD / Binary sizes (push) Has been cancelled
CICD / Build (push) Has been cancelled
CICD / Tests/BusyBox test suite (push) Has been cancelled
CICD / Tests/Toybox test suite (push) Has been cancelled
CICD / Test all features separately (push) Has been cancelled
CICD / Build/SELinux (push) Has been cancelled
CICD / Run benchmarks (CodSpeed) (push) Has been cancelled
GnuTests / Aggregate GNU test results (push) Has been cancelled
CICD / Build/nightly (push) Has been cancelled

wc: adapt error message to pass `wc-files0-from`
This commit is contained in:
Sylvestre Ledru 2025-09-26 18:18:39 +02:00 committed by GitHub
commit 32eef0687d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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("-")