Skip to content

Start-Transcript prevents prompts appearing. #26834

@RokeJulianLockhart

Description

@RokeJulianLockhart

Prerequisites

Steps to reproduce

#!/usr/bin/env pwsh
#Requires -PSEdition Core
#Requires -Version 7.5.4
If ($IsLinux) {
	Start-Transcript -Append -NoClobber -IncludeInvocationHeader && `
	sudo dnf5 install kate
}

Expected behavior

PS /home/RokeJulianLockhart> exit
RokeJulianLockhart@Beedell:~$ sudo dnf5 install kate
Updating and loading repositories:
Repositories loaded.
Package                                                                                                       Arch                   Version                                                                                                       Repository                                                           Size
Installing:
 kate                                                                                                         x86_64                 25.12.2-1.fc43                                                                                                updates                                                          17.8 MiB
Installing weak dependencies:
 kate-krunner-plugin                                                                                          x86_64                 6.5.5-1.fc43                                                                                                  updates                                                          70.4 KiB
 kate-plugins                                                                                                 x86_64                 25.12.2-1.fc43                                                                                                updates                                                          12.8 MiB

Transaction Summary:
 Installing:         3 packages

Total size of inbound packages is 10 MiB. Need to download 10 MiB.
After this operation, 31 MiB extra will be used (install 31 MiB, remove 0 B).
Is this ok [y/N]: n
Operation aborted by the user.
RokeJulianLockhart@Beedell:~$

Actual behavior

RokeJulianLockhart@Beedell:~$ pwsh
PowerShell 7.5.4
PS /home/RokeJulianLockhart> Start-Transcript -Append -NoClobber -IncludeInvocationHeader
Transcript started, output file is /home/RokeJulianLockhart/PowerShell_transcript.Beedell.Xn0Hl0Y_.20260215200638.txt
PS /home/RokeJulianLockhart> sudo dnf5 install kate                                      
[sudo] password for RokeJulianLockhart: 
Updating and loading repositories:
 Terra 43                               100% |   1.3 KiB/s |   1.9 KiB |  00m01s
 Terra 43 (Extras)                      100% |   1.4 KiB/s |   1.9 KiB |  00m01s
 Fedora 43 - x86_64 - Updates - Debug   100% |  11.3 KiB/s |  13.9 KiB |  00m01s
 RPM Fusion for Fedora 43 - Free tainte 100% |   7.6 KiB/s |   8.0 KiB |  00m01s
 RPM Fusion for Fedora 43 - Free tainte 100% |  10.4 KiB/s |   7.7 KiB |  00m01s
 Fedora 43 - x86_64 - Updates           100% |  37.9 KiB/s |  17.2 KiB |  00m00s
Repositories loaded.
Total size of inbound packages is 10 MiB. Need to download 10 MiB.
After this operation, 31 MiB extra will be used (install 31 MiB, remove 0 B).
Package              Arch   Version        Repository      Size
Installing:
 kate                x86_64 25.12.2-1.fc43 updates     17.8 MiB
Installing weak dependencies:
 kate-krunner-plugin x86_64 6.5.5-1.fc43   updates     70.4 KiB
 kate-plugins        x86_64 25.12.2-1.fc43 updates     12.8 MiB

Transaction Summary:
 Installing:         3 packages

n
Is this ok [y/N]: Operation aborted by the user.
PS /home/RokeJulianLockhart>

Error details

PS /> $(Get-Error -Newest 1) -Eq $Null
True

Environment data

PSVersion                 : 7.5.4
PSEdition                 : Core
GitCommitId               : 7.5.4
OS                        : Fedora Linux 43 (KDE Plasma Desktop Edition)
Platform                  : Unix
PSCompatibleVersions      : {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion : 2.3
SerializationVersion      : 1.1.0.1
WSManStackVersion         : 3.0

Visuals

@.Date.20260215T201119+0000.Type.Video.Origin.pwsh.Konsole.webm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions