On Fri, 1 Sep 2000 [EMAIL PROTECTED] wrote:

> I see in Lynx.trace:
> 
>     cat /tmp/pg-volatile/L4179-8025TMP.gif|( set -x; ls -alrt $TMPDIR; xv - & sleep 
>22 ) 2>&1
> 
> And it was a fortunate accident that I put the parentheses around my
> .mailcap line trying to understand what was happening.  Otherwise
> the "cat" would have piped into "set" rather than into "xv".
> perhaps Lynx should supply the parentheses.  I believe the syntax
> is the same for both csh and POSIX shell.

perhaps I could revisit that and make it do a pipe (we don't use pipes
in many places, and in case the logic is rather ugly ;-)

> As long as it's ifdef'd for UNIX, redirection would suffice and be
> one fork cheaper than piping.

you mean something like

        ( command ) <input

I hadn't thought about that.  I've been burned with some shells that
won't work properly if I redirect to an arbitrary command, and use
'cat' if there's a question about it.  In either case, there's no
recovery if the command contains an unbalanced parenthesis...

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to