* [sup-talk] run-mailcap not working correctly
@ 2007-10-16 1:25 Ian Taylor
2007-10-16 8:19 ` Pierre Baillet
0 siblings, 1 reply; 5+ messages in thread
From: Ian Taylor @ 2007-10-16 1:25 UTC (permalink / raw)
systeming run-mailcap doesn't seem to work on my system with >&
/dev/null appended. Think this is an issue with my setup?
Index: lib/sup/message-chunks.rb
===================================================================
--- lib/sup/message-chunks.rb (revision 611)
+++ lib/sup/message-chunks.rb (working copy)
@@ -78,7 +78,7 @@
def viewable?; @lines.nil? end
def view!
path = write_to_disk
- system "/usr/bin/run-mailcap --action=view #{@content_type}:#{path} >& /dev/null"
+ system "/usr/bin/run-mailcap --action=view #{@content_type}:#{path}"
$? == 0
end
--
Ian Taylor
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] run-mailcap not working correctly
2007-10-16 1:25 [sup-talk] run-mailcap not working correctly Ian Taylor
@ 2007-10-16 8:19 ` Pierre Baillet
2007-10-30 22:35 ` William Morgan
0 siblings, 1 reply; 5+ messages in thread
From: Pierre Baillet @ 2007-10-16 8:19 UTC (permalink / raw)
Hi,
I got the same issue on my debian setup here. Removing the >&... made the
html attachement work again.
On 10/16/07, Ian Taylor <itaylor at uark.edu> wrote:
>
> systeming run-mailcap doesn't seem to work on my system with >&
> /dev/null appended. Think this is an issue with my setup?
>
> Index: lib/sup/message-chunks.rb
> ===================================================================
> --- lib/sup/message-chunks.rb (revision 611)
> +++ lib/sup/message-chunks.rb (working copy)
> @@ -78,7 +78,7 @@
> def viewable?; @lines.nil? end
> def view!
> path = write_to_disk
> - system "/usr/bin/run-mailcap --action=view #{@content_type}:#{path}
> >& /dev/null"
> + system "/usr/bin/run-mailcap --action=view
> #{@content_type}:#{path}"
> $? == 0
> end
>
> --
> Ian Taylor
> _______________________________________________
> sup-talk mailing list
> sup-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/sup-talk
>
--
Pierre Baillet <pierre at baillet.name>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071016/4fc091d6/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] run-mailcap not working correctly
2007-10-16 8:19 ` Pierre Baillet
@ 2007-10-30 22:35 ` William Morgan
2007-10-31 0:29 ` Christopher Warrington
0 siblings, 1 reply; 5+ messages in thread
From: William Morgan @ 2007-10-30 22:35 UTC (permalink / raw)
Excerpts from Pierre Baillet's message of Tue Oct 16 01:19:38 -0700 2007:
> I got the same issue on my debian setup here. Removing the >&... made
> the html attachement work again.
Is this some shell-specific thing? It seems to work on bash. If so, is
there a portable way of discarding stderr? I don't want it cluttering
the screen if the process fails.
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] run-mailcap not working correctly
2007-10-30 22:35 ` William Morgan
@ 2007-10-31 0:29 ` Christopher Warrington
2007-11-06 22:59 ` William Morgan
0 siblings, 1 reply; 5+ messages in thread
From: Christopher Warrington @ 2007-10-31 0:29 UTC (permalink / raw)
Excerpts from William Morgan's message of Tue Oct 30 17:35:31 -0500 2007:
> Excerpts from Pierre Baillet's message of Tue Oct 16 01:19:38 -0700 2007:
> > I got the same issue on my debian setup here. Removing the >&... made
> > the html attachement work again.
> Is this some shell-specific thing? It seems to work on bash. If so, is
> there a portable way of discarding stderr? I don't want it cluttering
> the screen if the process fails.
Yes. In bash &> redirects both stdout and stderr. In sh, you can use this:
process > /dev/null 2> /dev/null
(From http://tomecat.com/jeffy/tttt/shredir.html)
Don't know about csh, ksh, &c.
--
Christopher Warrington <chrisw at rice.edu>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-06 22:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-16 1:25 [sup-talk] run-mailcap not working correctly Ian Taylor
2007-10-16 8:19 ` Pierre Baillet
2007-10-30 22:35 ` William Morgan
2007-10-31 0:29 ` Christopher Warrington
2007-11-06 22:59 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox