5 Nov
2010
5 Nov
'10
9:11 a.m.
Dave Reisner wrote:
Only occurs if no arguments were provided directly. Arguments can be separated by any amount of valid whitespace. This allows for piping into pacman from other programs or from itself, e.g.:
pacman -Qdtq | pacman -Rs
This is better than using xargs, as xargs will not reconnect stdin to the terminal. The above operation performed using xargs would require the --noconfirm flag to be passed to pacman.
No objection for this, but with two more characters, you can already pacman -Rs $(pacman -Qtdq)