Skip to content

Can't redirect output (all output is sent through stderr) #59

@jacobgkau

Description

@jacobgkau

Distribution (run cat /etc/os-release): Pop!_OS 20.04 LTS and 21.10

Related Application and/or Package Version (run apt policy $PACKAGE NAME): de5b292

Issue/Bug Description: When running kernelstub commands such as sudo kernelstub -p (which prints the current configuration), the output cannot be redirected. Trying to | grep xyz doesn't work, and trying to save to a file with > output.txt creates an empty file. The output is always printed directly to the terminal.

Redirecting with 2> output.txt does work; it seems output is always being sent via stderr, instead of stdout. stderr should not be used for regular, non-error output like this.

Steps to reproduce (if you know): Run sudo kernelstub -p | grep Options

Expected behavior: The output should be redirectable like most other CLI applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions