yay icon indicating copy to clipboard operation
yay copied to clipboard

`sudo`'s stderr is displayed in terminal after `yay` has exited

Open chapa opened this issue 2 years ago • 0 comments

Affected Version

yay v12.1.3 - libalpm v13.0.2

Describe the bug

sudo's stderr is displayed in terminal after yay has exited

Reproduction Steps

  1. Run yay -yy (or any command that call sudo)
  2. Hit Ctrl+C
  3. Wait a few seconds

Expected behavior

Either that yay waits the exit of sudo before exiting itself:

$ yay -yy
[sudo] password for <user>: ^C
# a few seconds later...
sudo: a password is required
$

Or that yay redirects output of sudo to /dev/null before exiting itself:

$ yay -yy
[sudo] password for <user>: ^C
$

Current output

$ yay -yy
[sudo] password for <user>: ^C
$ sudo: a password is required

chapa avatar Nov 03 '23 08:11 chapa