Philip,

On Wednesday, 2021-08-04 07:57:06 -0400, you wrote:

> ...
> Why not write the output to a file ?  -- eg
> 'emerge --ask --depclean > <temporaryfilename>'.
> Then you can look at the output at leisure, even on another machine.

Depending on the  number of packages  you've installed  and depending on
the speed of your rig "emerge --depclean" may take some time, and thus I
tried to avoid  splitting it  into two calls,  one to just announce what
would be done and one to really do it.

But meanwhile I'm suspecting that any call along the lines of

   # emerge --ask ... | $PAGER

is doomed to fail  because both,  "emerge"  and the pager  are trying to
read the user's answer from the same input device (maybe "/dev/tty") and
thus both are stumbling  over the other's feet.   The only way out would
be just another option causing "emerge" to page internally.

Therefore my "edepclean" alias now calls "emerge" twice, like so:

   # emerge --depclean --pretend | $PAGER
   # emerge --depclean -- ask --quiet

Sincerely,
  Rainer

Reply via email to