> I too think, --action=cat should ignore X viewers. > > After all, original --action=cat use case (as requested by me btw in > #526690) was to use it as canonical filter. So _filtering_ functionality > was assumed by --action=cat, and otherwise to me cat seems to be useless > because we have --action=view. > > > For my needs I created an extra script > > ---- 8< astextplain ---- > #!/bin/sh > unset DISPLAY > run-mailcap --action=cat $* > ---- 8< ---- > > instead of just using `run-mailcap --action=cat` where appropriate. > > What are use-cases for current cat behaviour? If there is none besides > being used as a filter, let's please make it ignore interactive viewers > and just pipe the result to stdout. >
That makes sense, but I can think of no generic way to know if it's an interactive viewer. I suppose we can say that between $DISPLAY and "needsterminal" that covers almost all possibilities. Brian bcwh...@pobox.com ----------------------------------------------------------------------------------------- Treat someone as they are and they will remain that way. Treat someone as they can be and they will become that way.