bug in viewprt?

Jay R. Ashworth jra at baylink.com
Wed May 12 13:53:14 PDT 2004


On Wed, May 12, 2004 at 03:50:35PM -0400, Bob Stockler wrote:
> | >    <$dir/$file lp -n $print
> | 
> | Some shells won't interpret variables as the argument of a redirection
> | (specifically, older SCO shells), and in any event, put the redirection
> | on the *right*, Bob.  :-)
> 
> On Tandy 6000 Xenix, SCO Xenix 2.3.4, SCO UNIX 3.2v4.2, and every
> system I've used since then, /bin/sh has _always_ interpreted
> variables used with redirection (to or from them) properly.

I tried it back in the 2.3.4 days, and I recall specifically having to
use eval to get it to work.  I don't know that I have a 2.3.4 left
laying around to install, much less anything slow enough to install it
on... :-)

> And, in this case, I like the redirection on the left, showing the
> left-to-right flow of the data from the file to the "lp" command
> (but that's a matter of taste, as the shell doesn't care about the
> position - or order, if there's both a < and > on the line - of the
> redirections).

Indeed a matter of taste; I was just pulling your chain.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Member of the Technical Staff     Baylink                             RFC 2100
The Suncoast Freenet         The Things I Think
Tampa Bay, Florida        http://baylink.pitas.com             +1 727 647 1274

        "They had engineers in my day, too."  -- Perry Vance Nelson


More information about the Filepro-list mailing list