Document the Get-Clipboard verbose message when the system clipboard is unavailable
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- powershell
- Área
- documentation
Línea de trabajo
Lee reference/7.7/Microsoft.PowerShell.Management/Get-Clipboard.md y comprueba cómo documenta el comportamiento de la plataforma y la salida detallada. Añade una nota que explique que, cuando el portapapeles del sistema no está disponible, Get-Clipboard recurre al portapapeles interno de PowerShell, que solo se rellena mediante Set-Clipboard, y que -Verbose informa de este recurso. Se considera terminado cuando el artículo describe este comportamiento y la salida predeterminada sigue siendo clara.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new
Get-Foocmdlet" instead of "New cmdlet."
Summary
Document the new verbose message that Get-Clipboard emits when it can't access the system clipboard and falls back to PowerShell's internal clipboard.
On Linux and macOS, Get-Clipboard reads the system clipboard through xclip or pbpaste. On unsupported platforms, or when that tool isn't installed, the cmdlet silently falls back to PowerShell's internal clipboard, which only Set-Clipboard populates. Users then see content that doesn't match their desktop clipboard, or no content at all, with no explanation.
PowerShell/PowerShell#26838 changes this so the fallback is reported on the verbose stream:
Get-Clipboard -Verbose
VERBOSE: The system clipboard is not available. Get-Clipboard falls back to PowerShell's internal clipboard, which is populated only by Set-Clipboard.
Default output is unchanged; the message only appears with -Verbose.
Details
- The message is written with
WriteVerbose, so it does not affect the success output stream or non-verbose runs. This keeps backward compatibility for scripts and for environments that intentionally run without a clipboard tool. - Windows behavior is unchanged; the fallback path only exists on Unix and on unsupported platforms.
- Suggested documentation: a note in the
Get-Clipboardarticle explaining the internal-clipboard fallback and how-Verbosereveals it. MentioningSet-Clipboardas the only way to populate the internal clipboard would help users understand the behavior.
Articles
- reference/7.7/Microsoft.PowerShell.Management/Get-Clipboard.md
Related Source Pull Requests
Related Source Issues
- PowerShell/PowerShell#26838
- Lenguaje dominante
- PowerShell
- Estrellas
- 2.6k
- Forks
- 1.7k
- Merge medio
- 3 h 49 min
- PR fusionados (30 d)
- 5
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 MicrosoftDocs/PowerShell-Docs
-
about_Logging_Windows: registry example creates EnableScriptBlockLogging as a string, which PowerShell 7 ignoresPosiblemente ocupada @CHX606 la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
MicrosoftDocs/PowerShell-Docs#13423 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
MicrosoftDocs/PowerShell-Docs#13419 ·
Los mantenedores suelen responder en 1 día
-
issue-doc-bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MicrosoftDocs/PowerShell-Docs#13413 ·
Los mantenedores suelen responder en 1 día
-
Rename-Item: Tell about NewName parameter allow scriptBlockPosiblemente ocupada @gerardrecinto la tomó hace 1 día. Abiertoneeds-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
MicrosoftDocs/PowerShell-Docs#13412 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MicrosoftDocs/PowerShell-Docs#13407 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MicrosoftDocs/PowerShell-Docs
Issues similares
-
enhancement good first issue help wanted
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
-
area:cli area:docs Platform vdr
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA-NeMo/Gym#7192 ·
Los mantenedores suelen responder en 2 días
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpAbiertoenhancement feature: settings good first issue
Dificultad 1/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 82/100
open-telemetry/semantic-conventions-client-side#72 ·
Los mantenedores suelen responder en 1 día
-
area: cli area: repo priority: P3 type: chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
appandflow/stim#6826 ·
Los mantenedores suelen responder en 1 día