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.
Distribution (run
cat /etc/os-release): Pop!_OS 20.04 LTS and 21.10Related Application and/or Package Version (run
apt policy $PACKAGE NAME): de5b292Issue/Bug Description: When running kernelstub commands such as
sudo kernelstub -p(which prints the current configuration), the output cannot be redirected. Trying to| grep xyzdoesn't work, and trying to save to a file with> output.txtcreates an empty file. The output is always printed directly to the terminal.Redirecting with
2> output.txtdoes 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 OptionsExpected behavior: The output should be redirectable like most other CLI applications.