sudo-rs icon indicating copy to clipboard operation
sudo-rs copied to clipboard

Problems with piping into sudo-rs

Open DriedSnow opened this issue 2 months ago • 3 comments
trafficstars

Describe the bug When using sudo-rs in a command to remove orphens on Archlinux pipeing pacman -Qqtd in to sudo-rs pacman -Rsu - does not let you enter Y or N to continue and just exits.

To Reproduce Steps to reproduce the behavior:

  1. Install sudo-rs
  2. Run pacman -Qqtd | sudo-rs pacman -Rsu -
  3. see error pacman -Qqtd | sudo-rs pacman -Rsu -

Expected behavior A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • Linux distribution: Archlinux
  • sudo-rs commit hash: b57be94 and 5314990

Additional context

pacman -Qqtd | sudo-rs pacman -Rsu - checking dependencies... :: binutils optionally requires debuginfod: for debuginfod server/client functionality :: python-geopy optionally requires python-pytz: for timezone support :: python-jinja optionally requires python-babel: for i18n support :: python-mako optionally requires python-babel: for i18n features :: python-pyqt5 optionally requires qt5-location: QtLocation, QtPositioning :: python-pyqt5 optionally requires qt5-webchannel: QtWebChannel :: systemd optionally requires libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote

Packages (51) cjson-1.7.18-1 debuginfod-0.193-5 libmicrohttpd-1.0.2-1 libx86emu-3.7-2 perl-xml-writer-0.900-5 python-babel-2.17.0-1 python-imagesize-1.4.1-6 python-pytz-2025.2-1 python-roman-numerals-py-3.1.0-1 python-snowballstemmer-2.2.0-7 python-sphinx-8.2.3-1 python-sphinx-alabaster-theme-1.0.0-4 python-sphinxcontrib-applehelp-2.0.0-3 python-sphinxcontrib-devhelp-2.0.0-4 python-sphinxcontrib-htmlhelp-2.1.0-3 python-sphinxcontrib-jquery-4.1-4 python-sphinxcontrib-jsmath-1.0.1-19 python-sphinxcontrib-qthelp-2.0.0-3 python-sphinxcontrib-serializinghtml-2.0.0-3 qt5-location-5.15.17+kde+r7-1 qt5-webchannel-5.15.17+kde+r3-1 asio-1.34.2-1 boost-1.88.0-3 cbindgen-0.29.0-1 check-0.15.2-3 ckbcomp-1.242-1 electron35-35.7.5-1 ffnvcodec-headers-13.0.19.0-1 granite-1:6.2.0-1 hwinfo-25.0-2 kitemmodels5-5.116.0-1 librist-0.2.11-1 libspng-0.7.4-2 libtar-1.2.20-7 libva-utils-2.22.0-1 mbedtls2-2.28.10-1 patchutils-0.4.2-3 profile-sync-daemon-1:6.50-2 python-ply-3.11-15 python-pyaml-24.12.0-1 python-pyliblo-0.10.0-14 python-sphinx-hawkmoth-0.21.0-1 python-sphinx_rtd_theme-2.0.0-2 qrcodegencpp-cmake-1.8.0-4 qt5-webengine-5.15.19-2 rust-bindgen-0.72.0-1 spirv-headers-1:1.4.321.0-1 valgrind-3.25.1-3 vdpauinfo-1.5-2 webkit2gtk-2.48.6-1 xmlto-0.0.29-1

Total Removed Size: 914.19 MiB

:: Do you want to remove these packages? [Y/n] %

DriedSnow avatar Sep 09 '25 07:09 DriedSnow