find: -fprint /dev/stdout truncates a redirected stdout
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 62/100
Línea de trabajo
Start by reading the handling of -fprint, -fprint0, -fprintf and -fls and how those actions open their output paths. Reproduce the reported case with redirected stdout, then check the corresponding stderr case. Done means /dev/stdout and /dev/stderr write to the redirected streams without truncating existing output.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
GNU find treats /dev/stdout and /dev/stderr specially in -fprint, -fprint0, -fprintf and -fls. We open them as normal files, so when stdout is redirected the file gets truncated and the output overwrites itself.
$ echo keep > log
$ /usr/bin/find a.txt -fprint /dev/stdout >> log; cat log
keep
a.txt
$ find a.txt -fprint /dev/stdout >> log; cat log
a.txt
Same with -fprint /dev/stderr 2> err, where an error message overwrites the printed names.
- Lenguaje dominante
- Rust
- Estrellas
- 653
- Forks
- 115
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 27
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de uutils/findutils
-
find: -printf %h drops a doubled slashPosiblemente ocupada @qodelicious la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
find: -printf %TT and %TX drop the fraction of a secondPosiblemente ocupada @qodelicious la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
uutils/findutils#692 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de uutils/findutils
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
ScoopInstaller/Extras#19275 ·
Los mantenedores suelen responder en 1 día
-
area:plugins kind:bug priority:p2 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug priority: medium ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
storytold/gridcraft#3496 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bip39: Mnemonic::new_from_phrase rejects phrases with extra or non-space whitespacePosiblemente ocupada @chukwudiikeh la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día