yay
yay copied to clipboard
`sudo`'s stderr is displayed in terminal after `yay` has exited
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
- Run
yay -yy(or any command that callsudo) - Hit
Ctrl+C - 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