`Start-Transcript` prevents prompts appearing. · Issue #26834 · PowerShell/PowerShell · GitHub
Skip to content

Start-Transcript prevents prompts appearing. #26834

Open

Description

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

Activity

  1. beedell-roke commented on Feb 15, 2026

    @beedell-roke
    Author

    I discovered this when diagnosing issues/26833 and issues/16717#issuecomment-1079921447. In retrospect, this may be because the command does not consider pwsh to be a user-accessible shell:

    PS /home/RokeJulianLockhart> flatpak install bitwarden
    Looking for matches…
    F: An error was encountered searching remote ‘fedora’ for ‘bitwarden’: 'bitwarden' is not a valid name: Names must contain at least 2 periods
    F: An error was encountered searching remote ‘fedora-testing’ for ‘bitwarden’: 'bitwarden' is not a valid name: Names must contain at least 2 periods
    F: An error was encountered searching remote ‘flathub’ for ‘bitwarden’: 'bitwarden' is not a valid name: Names must contain at least 2 periods
    F: An error was encountered searching remote ‘flathub-beta’ for ‘bitwarden’: 'bitwarden' is not a valid name: Names must contain at least 2 periods
    F: An error was encountered searching remote ‘flathub’ for ‘bitwarden’: 'bitwarden' is not a valid name: Names must contain at least 2 periods
    error: No remote refs found for ‘bitwarden’
    PS /home/RokeJulianLockhart> exit
    RokeJulianLockhart@Beedell:~$ flatpak install bitwarden
    Looking for matches…
    Remotes found with refs similar to ‘bitwarden’:
    
       1) ‘flathub’ (system)
       2) ‘flathub’ (user)
    
    Which do you want to use (0 to abort)? [0-2]:
  2. soroshsabz commented on Oct 7, 2026

    @soroshsabz

    ITNOA

    Any update?

  3. beedell-roke commented on Oct 8, 2026

    @beedell-roke
    Author

    soroshsabz, what does "ITNOA" refer to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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