🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56137

Re: slrn: how to view image

#56137
From: Lloyd Zusman
Date: Wed, 29 Dec 1999 00:00
45 lines
2502 bytes
davis@space.mit.edu (John E. Davis) writes:

> On 26 Dec 1999 19:53:26 GMT, K.W.Wibowo <k.w.wibowo@NO-Spam_please.twi.tudelft.nl>
> wrote:
> >How do I tell slrn to decode and view image using xv directly without
> >having to first save the article(s) and then start up xv?
> 
> I wrote the following several years ago:
> 
> [ ... ]
>
> The last line binds the function `xv_view_article' to the `v' key in
> article mode.  The command `uuxv' is a one line shell script that
> consists of simply
> 
>   (uudecode --stdout $1 | xv - &) <&0

I have a non-sequitur-ish question just about this one line.  What is
the purpose of `<&0'?  It's shorthand for `0<&0', which means
"redirect file descriptor 0 from file descriptor 0", and therefore it
seems redundant.  Or is there something subtle going on here, perhaps
something to do with closing fd 0 and then reopening it?


> [ ... ]
>
> I would like to eliminate the shell script altogether and simply use
> something like:
> 
>      pipe_article ("uudecode --stdout $1 | xv - &");
>      
> but I was unsuccessful.  If anyone manages to do this, please let me
> know the trick.

It depends what "pipe_article" really does.  Over the next few days
I'll look at the source code and see if I can figure it out.  It might
have something to do with the way that "pipe_article" manages process
groups or SIGCHLD's or SIGPIPE's or something of that nature.


-- 
 Lloyd Zusman
 ljz@asfast.com

Technical Details
Message-ID: <ltu2l18efr.fsf@asfast.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn86cssg.p7f.k.w.wibowo@isnet-2.isnet.org> <slrn86l224.ik.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <ltu2l18efr.fsf@asfast.com>
Subject: Re: slrn: how to view image
Date: Wed, 29 Dec 1999 00:00:00 +0000
From: Lloyd Zusman <ljz@asfast.com>
References: <slrn86cssg.p7f.k.w.wibowo@isnet-2.isnet.org> <slrn86l224.ik.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 566311582
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: newsabuse@supernews.com
X-Face: "!ga1s|?LNLE3MeeeEYs(%LIl9q[xV9!<nimJxd1qyQRquvu5XTnZ:_5VE-G&4*EAuW"7oJLIXj'DWrJ0z@,FlwvD2PA@qhQ2R#zgsc14Klk;OSE'*;+l8p?0^nK7*X#0zg5wd^!M^2pg,M4Qd^{1viG;fa{}b.s[?g(x$45c]]=@'ZQ&]sPXl!u:hxBAv>j4#xf4!**BFW_ihlOb;:Slb>)vy>CJM<qjGM,/6C6\|{))YWm6}Q#?3om%n8
Organization: Linux Hippopotamus Preserve
User-Agent: Gnus/5.0803 (Gnus v5.8.3) XEmacs/21.1 (Bryce Canyon)
MIME-Version: 1.0
Newsgroups: news.software.readers